home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Information / THINK C Digest / 1992 / 92-03 < prev    next >
Text File  |  1995-12-31  |  81KB  |  2,422 lines

  1. 
  2. Path: ucivax!gateway
  3. From: udsugar@KING.MCS.DREXEL.EDU (David Sugar)
  4. Subject: Sound stuff??
  5. Message-ID: <9203020205.AA22755@mcs.drexel.edu>
  6. Newsgroups: fa.think-c
  7. Lines: 16
  8. Date: 2 Mar 92 04:29:01 GMT
  9.  
  10.  
  11.   Umm, I have a quick question here.  I hope this one isn't too hard..
  12. I just want to write a simple little thing to generate 2 tones.  They
  13. have to be 2 different tones.  And I would like to do this so that
  14. it will put one tone on the left channel and one on the right of the
  15. stereo output.  I was going to use the wave Table Synth routines, but I
  16. can't find a way to make it produce tones on just the left or right, I
  17. can only get it to produce a mono tone..
  18.   I only want this to control some audio hardware that is indirectly
  19. hooked to the computer.  So it doesn't have to be great code or anything.
  20.  
  21. Thanks
  22.  
  23. Dave Sugar
  24. udsugar@mcs.drexel.edu
  25.  
  26. 
  27. 
  28. Path: ucivax!gateway
  29. From: jjensen@dsg4.dse.beckman.com
  30. Subject: Re: example code to display PICT files
  31. Message-ID: <9203021531.AA19685@dsg4.dse.beckman.com>
  32. Newsgroups: fa.think-c
  33. Lines: 28
  34. Date: 2 Mar 92 15:27:51 GMT
  35.  
  36. I put together something to read and display PICT files using Think C 4.0
  37.  
  38. I'm afraid my Mac isn't connected to Internet, so I'll have to do this from
  39. memory:
  40.  
  41. 1)  I took the Starter project a base.
  42.  
  43. 2)  I made the thing create a color window for each document instead of a
  44.     black and white one. ( I think all windows have color abilities in
  45.     Think 5.0.1 )
  46.  
  47. 3)  I brought in the CPictFile object thoughtfully provided in the Think
  48.     Class Library.
  49.  
  50. 4)  I changed the default file type to 'PICT'.
  51.  
  52. 5)  I can't remember exactly, but I think I made BuildNewWindow (?) do a
  53.     ReadAll on my data file and stick it into a scroll paine in my color
  54.     window.  (maybe someone can clarify this step)
  55.  
  56. And then I think I could read and view 32 bit color image files.  ( I later
  57. modified this base project to do some color fractals - sort of. )
  58.  
  59. I hope this helps as a start.
  60.  
  61. John
  62.  
  63. jjensen@dsg4.dse.beckman.com
  64. 
  65. 
  66. Path: ucivax!gateway
  67. From: sears@netcom.com (Daniel Sears)
  68. Subject: Quality is Job 1.01
  69. Message-ID: <9203041819.AA28061@netcom.netcom.com>
  70. Newsgroups: fa.think-c
  71. Lines: 5
  72. Date: 4 Mar 92 18:19:33 GMT
  73.  
  74. I recently bought Think Reference.  I think it's a very good product
  75. with a fair number of minor blemishes.  Then I noticed that my disk
  76. was dated May 1991.  Are there any updates available for this product?
  77.  
  78. --Dan
  79. 
  80. 
  81. Path: ucivax!gateway
  82. From: smcalist%core1@kssib.ksc.nasa.gov (Scott McAlister)
  83. Subject: Mac CASE tools?
  84. Message-ID: <9203041958.AA01633@apollo101>
  85. Newsgroups: fa.think-c
  86. Lines: 1
  87. Date: 4 Mar 92 19:55:20 GMT
  88.  
  89. Are there any CASE tools especially for Mac programming?
  90. 
  91. 
  92. Path: ucivax!gateway
  93. From: rgh3595@ultb.isc.rit.edu ("R.G. Hawbaker ")
  94. Subject: Updating Think-C 4 to 5
  95. Message-ID: <9203050417.AA29007@ultb.isc.rit.edu>
  96. Newsgroups: fa.think-c
  97. Lines: 5
  98. Date: 5 Mar 92 04:17:48 GMT
  99.  
  100.  
  101. Hi, I have the Think C 4 version, and would like to upgrade to 5.  What's the
  102. number that I should call about this?
  103.  
  104.     Bobert
  105. 
  106. 
  107. Path: ucivax!gateway
  108. From: topgun@iastate.edu
  109. Subject: Please include me.
  110. Message-ID: <9203050515.AA22562@iastate.edu>
  111. Newsgroups: fa.think-c
  112. Lines: 3
  113. Date: 5 Mar 92 05:15:22 GMT
  114.  
  115. Hi, please include me in your subscription list.
  116.  
  117. Thanks.
  118. 
  119. 
  120. Path: ucivax!gateway
  121. From: roscom!monty@think.com (Monty Solomon)
  122. Subject: Re: Updating Think-C 4 to 5
  123. Message-ID: <9203050710.AA07450@roscom.uucp>
  124. Newsgroups: fa.think-c
  125. Lines: 19
  126. Date: 5 Mar 92 07:12:08 GMT
  127.  
  128. > From: "R.G. Hawbaker " <rgh3595@ultb.isc.rit.edu>
  129. > Subject: Updating Think-C 4 to 5
  130. > Newsgroups: fa.think-c
  131. > Date: 5 Mar 92 04:17:48 GMT
  132. > To: think-c@ics.uci.edu
  133. >
  134.  
  135. > Hi, I have the Think C 4 version, and would like to upgrade to 5.  What's the
  136. > number that I should call about this?
  137. >
  138.  
  139. >     Bobert
  140.  
  141. 1-800-228-4122 x811
  142. The upgrade is $89.00 + $8.00 S/H
  143.  
  144. ---
  145. # Monty Solomon / Roscom / PO Box 2486 / Framingham, MA  01701-0405
  146. # roscom!monty@think.com
  147. 
  148. 
  149. Path: ucivax!gateway
  150. From: janice@iastate.edu
  151. Subject: remove from list
  152. Message-ID: <9203051934.AA01448@iastate.edu>
  153. Newsgroups: fa.think-c
  154. Lines: 7
  155. Date: 5 Mar 92 19:34:34 GMT
  156.  
  157.  
  158. Hi
  159.  
  160. Please remove me from this mailing list.
  161.  
  162. Thank you.
  163.  
  164. 
  165. 
  166. Path: ucivax!gateway
  167. From: mikew@fsg.com
  168. Subject: Unsubscribe
  169. Message-ID: <2680.9203061435@groucho.fsg.com>
  170. Newsgroups: fa.think-c
  171. Lines: 2
  172. Date: 6 Mar 92 14:37:32 GMT
  173.  
  174.  
  175. Please remove me from the list.  Thanx.
  176. 
  177. 
  178. Path: ucivax!gateway
  179. From: egw@p3.lanl.gov (egw)
  180. Subject: Corrupted Project Res Map
  181. Message-ID: <9203061623.AA02619@p.lanl.gov>
  182. Newsgroups: fa.think-c
  183. Lines: 24
  184. Date: 6 Mar 92 16:23:54 GMT
  185.  
  186. Corrupted Project Res Map
  187. I've been having a recurring problem with corrupted Think C project files.
  188. Occasionally, I try to open a project and Think C replies"
  189.  
  190. "Resource file 'MyProject.#185#' not found"
  191.  
  192. When I try opening the project file with Resedit or Resorcerer they give me a
  193. -199 mapReadErr (map inconsistent with operation) from the Resource Manager.
  194.  
  195. This is a huge project (>250 source files) which takes about an hour to compile
  196. on an FX so this is a major pain.  I've rebuilt the project from scratch (Which
  197. made me wish that project file lists could be saved and restored from text
  198. files.) and still have the problem.  I had been blaming the problem on my code
  199. corrupting the heap somehow which then got written into the project.  However,
  200. the last time it happened my code wasn't even in a runnable state so I was only
  201. editing, compiling, and adding a few files in the project.
  202.  
  203. I'm using Think C 5.0.2 under Tuned-up System 7 in 32bit mode on a IIfx with
  204. 20Mb of RAM.  Lots of extensions (NOW utilities, QKeys, etc.).
  205.  
  206. Eric
  207. egw@p3.lanl.gov
  208.  
  209.  
  210. 
  211. 
  212. Path: ucivax!gateway
  213. From: rick_holzgrafe@taligent.com (Rick Holzgrafe)
  214. Subject: Re: Corrupted Project Res Ma
  215. Message-ID: <9203061546.aa05922@q2.ics.uci.edu>
  216. Newsgroups: fa.think-c
  217. Lines: 20
  218. Date: 6 Mar 92 23:47:02 GMT
  219.  
  220.          Reply to:
  221.                     RE>Corrupted Project Res Map
  222. > I've been having a recurring problem with corrupted Think C project files.
  223. > [...]
  224. > the last time it happened my code wasn't even in a runnable state so I was
  225. only
  226. > editing, compiling, and adding a few files in the project.
  227. > Eric
  228. > egw@p3.lanl.gov
  229.  
  230. Check the resource forks of the source files you were editing. I have found
  231. that a trashed source file resource fork can wreak havoc in a project file.
  232. Until I found my offending source file and deleted its resource fork, I was
  233. replacing my project file several times a day, and swearing like a sailor.
  234.  
  235. Rick Holzgrafe   rmh@apple.com (now)
  236.                  rmh@taligent.com (soon)
  237.  
  238.  
  239.  
  240. 
  241. 
  242. Path: ucivax!gateway
  243. From: laborde@imag.fr (Jean-Marie Laborde)
  244. Subject: FSSpec and PBGetFInfo
  245. Message-ID: <9203092106.AA23210@imag.imag.fr>
  246. Newsgroups: fa.think-c
  247. Lines: 42
  248. Date: 9 Mar 92 21:07:15 GMT
  249.  
  250. I am in trouble with FSSpec recommended records for file starting with
  251. system 7.
  252. Indeed when one obtain after a call to StandardGet(Put)File an answer in a
  253. StandardFileReply variable, How to fill the parameters from a bloc to pass
  254. to PBGetFInfo.
  255. Before system 7 it was possible to have something like
  256.    lebloc.fileParam.ioCompletion    =0L;
  257.                     lebloc.fileParam.ioNamePtr       =reponse.name;
  258.                     lebloc.fileParam.ioVRefNum       =reponse.vRefNum;
  259.                     lebloc.fileParam.ioFDirIndex     =0;
  260.  
  261. Now using a st_reponse of type StandardFileReply
  262.     lebloc.fileParam.ioCompletion   =0L;
  263.                     lebloc.fileParam.ioNamePtr       =st_reponse.sfFile.name;
  264.                     lebloc.fileParam.ioVRefNum       =st_reponse.sfFile.vRefNum;
  265.                     lebloc.fileParam.ioFDirIndex     =0;
  266. do not work.
  267. (very often    'st_reponse.sfFile.vRefNum' is -1 when
  268.        'reponse.vRefNum'  obtained via the older SFPutFile would be some
  269. thing like
  270.  -32413 !)
  271.  
  272.  
  273. (At least most of the time PBGetFInfo return fnfErr (File Not Found).
  274. GetVRefNum via a pathrefNum does not help.
  275.  
  276. It exist a way to go from old-fashioned file description to FSSpec:
  277.         FSMakeFSSpec(vReNum, dirID, filename, &spec),
  278. what about the converse?
  279.  
  280. Thank you for helping to anybody!
  281. (By the way who knows (I did not remember what is the special semantic
  282. meaning of the value -1 for a vRefNum?)
  283. Thank you again
  284.  
  285.  
  286. Jean-Marie Laborde          laborde@imag.fr
  287. Laboratoire de Structures Discretes et de Didactique - IMAG
  288. Universite Joseph Fourier - CNRS          BP 53x 38041 Grenoble cedex
  289. FRANCE
  290. (33) 76 51 46 10   (sec 76 51 46 16)      (fax 76 51 45 55)
  291.  
  292. 
  293. 
  294. Path: ucivax!gateway
  295. From: degennar%bmsr4.usc.edu@usc.edu (Raymond Degennaro)
  296. Subject: building an application & MacBugs
  297. Message-ID: <9203092147.AA07844@bmsr4.usc.edu>
  298. Newsgroups: fa.think-c
  299. Lines: 16
  300. Date: 9 Mar 92 21:47:49 GMT
  301.  
  302. Hi y`all
  303.  
  304. I have an interesting problem. My program runs fine in the debugger, but when
  305. build an application, it crashes with an unimplemented trap error.  I'm using
  306. the TCL (I've used the updater from the archives) and have no idea where the
  307. problem could be comming from.  Any suggestions?  I don't think that needed
  308. methods were stripped out, because it crashes if I build the app with smart
  309. linking, and it crashes if I don't.
  310.  
  311. I thought I might get a hint as to what the problem is by using MacBugs.  Well,
  312. when I popped into it, I realized that I hadn't the faintest idea how to use
  313. it.  Are there any instructions around?
  314.  
  315.  
  316. Ray (DJ) DeGennaro II
  317. degennar@bmsrs.usc.edu
  318. 
  319. 
  320. Path: ucivax!gateway
  321. From: huff@mcclb0.med.nyu.edu ("Edward J. Huff")
  322. Subject: Re: FSSpec and PBGetFInfo
  323. Message-ID: <01GHGG7JLDS0000KSH@MCCLB0.MED.NYU.EDU>
  324. Newsgroups: fa.think-c
  325. Lines: 78
  326. Date: 10 Mar 92 03:28:10 GMT
  327. X-Envelope-to: think-c@ics.uci.edu
  328.  
  329. >I am in trouble with FSSpec recommended records for file starting with
  330. >system 7.
  331. >Indeed when one obtain after a call to StandardGet(Put)File an answer in a
  332. >StandardFileReply variable, How to fill the parameters from a bloc to pass
  333. >to PBGetFInfo.
  334. >Before system 7 it was possible to have something like
  335. >   lebloc.fileParam.ioCompletion    =0L;
  336. >                    lebloc.fileParam.ioNamePtr       =reponse.name;
  337.  
  338. This requires that response exists for at least as long as leblock, since
  339. a pointer to response.name is created here.  If response is an automatic
  340. variable of the current procedure and lebloc is static, this creates a
  341. dangling pointer upon exit from the current procedure.
  342.  
  343. >                    lebloc.fileParam.ioVRefNum       =reponse.vRefNum;
  344. >                    lebloc.fileParam.ioFDirIndex     =0;
  345. >
  346. >Now using a st_reponse of type StandardFileReply
  347. >    lebloc.fileParam.ioCompletion   =0L;
  348. >                    lebloc.fileParam.ioNamePtr       =st_reponse.sfFile.name;
  349. >                    lebloc.fileParam.ioVRefNum       =st_reponse.sfFile.vRefNum;
  350. >                    lebloc.fileParam.ioFDirIndex     =0;
  351. >do not work.
  352. >(very often    'st_reponse.sfFile.vRefNum' is -1 when
  353. >       'reponse.vRefNum'  obtained via the older SFPutFile would be some
  354. >thing like
  355. > -32413 !)
  356. Notice that sfFile (an FSSpec) contains three fields:  vRefNum, parID, and
  357. name.
  358. The old SFReply record (designed prior to HFS) contains only vRefNum and
  359. fName.
  360. The vRefNum field was modified for HFS to return a working directory ID
  361. number,
  362. something like -32413, rather than a real volume reference number, like -1.
  363. Working directory ID numbers are to be avoided.  I believe they cause such
  364. things as the inability to trash a folder from finder prior to quitting an
  365. application which used the old SF package to select a file in that folder.
  366. (After you quit the application, the folder can be deleted).
  367. I would hope that using the new SF package does not create a working
  368. directory and hence, you should be able to trash a folder without first
  369. quitting from the application which last opened a file from that folder via
  370. the new SF package, but I haven't tried it.
  371. >
  372. >
  373. >(At least most of the time PBGetFInfo return fnfErr (File Not Found).
  374. >GetVRefNum via a pathrefNum does not help.
  375. >
  376. >It exist a way to go from old-fashioned file description to FSSpec:
  377. >        FSMakeFSSpec(vReNum, dirID, filename, &spec),
  378. >what about the converse?
  379. You are supposed to change your PBGetFInfo call to a FSpGetFInfo high level
  380. call (no paramater block).
  381.  
  382. If you must use parameter blocks, then you must copy the parID field from
  383. the FSSpec into lebloc.fileParam.ioDirID and use PBHGetFInfo instead of
  384. PBGetFInfo.  "PGHGetFInfo is identical to PBGetFInfo except that it accepts
  385. a directory ID in ioDirID."  IV-149.  You might also have to change the
  386. declaration of lebloc if it doesn't contain the ioDirID field.  (Sorry,
  387. I am looking at Inside Macintosh, not at the C header files).
  388. >
  389. >Thank you for helping to anybody!
  390. >(By the way who knows (I did not remember what is the special semantic
  391. >meaning of the value -1 for a vRefNum?)
  392. -1 is the actual volume reference number for the first volume, rather
  393. than a working directory reference number.
  394. >Thank you again
  395. >
  396. >
  397. >Jean-Marie Laborde          laborde@imag.fr
  398. >Laboratoire de Structures Discretes et de Didactique - IMAG
  399. >Universite Joseph Fourier - CNRS          BP 53x 38041 Grenoble cedex
  400. >FRANCE
  401. >(33) 76 51 46 10   (sec 76 51 46 16)      (fax 76 51 45 55)
  402. --
  403. Edward J. Huff   huff@mcclb0.med.nyu.edu   (212)998-8465
  404. Keck Laboratory for Biomolecular Imaging
  405. NYU Chemistry Deptartment, 31 Washington Place, New York NY 10003
  406.  
  407. 
  408. 
  409. Path: ucivax!gateway
  410. From: huff@mcclb0.med.nyu.edu ("Edward J. Huff")
  411. Subject: Re: building an application & MacBugs
  412. Message-ID: <01GHGGZAHEXC000O2N@MCCLB0.MED.NYU.EDU>
  413. Newsgroups: fa.think-c
  414. Lines: 18
  415. Date: 10 Mar 92 03:48:56 GMT
  416. X-Envelope-to: think-c@ics.uci.edu
  417.  
  418. >I thought I might get a hint as to what the problem is by using MacBugs.  Well,
  419. >when I popped into it, I realized that I hadn't the faintest idea how to use
  420. >it.  Are there any instructions around?
  421. >
  422. >
  423. >Ray (DJ) DeGennaro II
  424. >degennar@bmsrs.usc.edu
  425. The "MacsBug Reference and Debugging Guide for MacsBug version 6.2" is
  426. published by Addison-Wesley, ISBN 0-201-56767-9, $22.95, available in
  427. bookstores.
  428. MacsBug version 6.2 should be available on ftp.apple.com, I got a copy from
  429. there recently.  There is a "help" command if you installed MacsBug and its
  430. preferences file properly.
  431. --
  432. Edward J. Huff   huff@mcclb0.med.nyu.edu   (212)998-8465
  433. Keck Laboratory for Biomolecular Imaging
  434. NYU Chemistry Deptartment, 31 Washington Place, New York NY 10003
  435.  
  436. 
  437. 
  438. Path: ucivax!gateway
  439. From: slosser@mindseye.berkeley.edu (Eric Slosser)
  440. Subject: example code to display PICT files
  441. Message-ID: <9203100828.AA00766@mindseye.berkeley.edu>
  442. In-Reply-To: "Haseen I. Alam"'s message of 28 Feb 92 03:17:14 GMT <9202280318.AA19100@ub.d.umn.edu>
  443. Newsgroups: fa.think-c
  444. Lines: 13
  445. Date: 10 Mar 92 08:28:10 GMT
  446.  
  447. CopyBits is a good way to blit images on the screen.  Having setup a PixMap,
  448. you'll be able to alter colors and bitmapped images fairly easily.
  449.  
  450. The TIFF format is the same on all computers, except that everyone uses a
  451. different subset of its fields.
  452.  
  453. Don't try to learn the internals of a Picture.   Rely only on knowing which
  454. QD calls will get stored in a pict, and that a PICT file is a 512 byte
  455. header followed by the contents of the pict handle.
  456.  
  457. very brief, so feel free to ask for clarification.
  458. eric slosser
  459.  
  460. 
  461. 
  462. Path: ucivax!gateway
  463. From: slosser@mindseye.berkeley.edu (Eric Slosser)
  464. Subject: building an application & MacBugs
  465. Message-ID: <9203100839.AA00770@mindseye.berkeley.edu>
  466. In-Reply-To: "Edward J. Huff"'s message of 10 Mar 92 03:48:56 GMT <01GHGGZAHEXC000O2N@MCCLB0.MED.NYU.EDU>
  467. Newsgroups: fa.think-c
  468. Lines: 30
  469. Date: 10 Mar 92 08:38:51 GMT
  470.  
  471.  
  472. If you dropped into MacsBug because of an unimplement trap, type "ip".
  473. A disassembly of your current location will result, with the
  474. offending trap marked with a '*'.
  475.  
  476. If it's something like "TRAP 1F", then check your source to see what
  477. the compiler thought it was trying to do.  If it's got a name like
  478. "RGBForeColor", check to be sure that trap is implemented on your platform.
  479.  
  480. If the whole listing is filled with instructions like "ORI.B #0,D0",
  481. then you've been naughty and written data on top of your code, or
  482. moved a CODE segment that was referenced as a return address somewhere,
  483. or messed up your stack and return addresses, and have jumped into
  484. "the tall grass".
  485.  
  486. If none of the above, each of the following, following each with a <return>.
  487. log unimptrapcrash
  488. ip
  489. td
  490. sc
  491. hc
  492. ht
  493. log
  494.  
  495. Then look for the file named "unimptrapcrash" on your disk, and send
  496. it to some one you don't mind bothering, like anyone who replied to
  497. your original post.
  498.  
  499. Good luck,
  500. eric slosser
  501. 
  502. 
  503. Path: ucivax!gateway
  504. From: idowell@bbn.com
  505. Subject: Re: building an application & MacBugs
  506. Message-ID: <9203100647.aa07502@q2.ics.uci.edu>
  507. In-reply-to: Your message of 10 Mar 92 03:48:56 +0000.
  508.              <01GHGGZAHEXC000O2N@MCCLB0.MED.NYU.EDU>
  509. Newsgroups: fa.think-c
  510. Lines: 6
  511. Date: 10 Mar 92 14:47:33 GMT
  512.  
  513. And speaking of MacsBugs, does anyone out there know if it is
  514. possible to get it to work (load at startup) on a IIcx with
  515. an Emachines Z21 IQ monitor?
  516.  
  517. Ian Dowell
  518. idowell@bbn.com
  519. 
  520. 
  521. Path: ucivax!gateway
  522. From: egw@p3.lanl.gov (egw)
  523. Subject: Project Corruptions (Solved
  524. Message-ID: <9203111626.AA08826@p.lanl.gov>
  525. Newsgroups: fa.think-c
  526. Lines: 20
  527. Date: 11 Mar 92 16:27:00 GMT
  528.  
  529. Project Corruptions (Solved)
  530. Last week I posted a message to this group regarding the periodic corruption of
  531. Think C project files.
  532.  
  533. Symptom: a project file which Think C refused to open (giving various error
  534. messages, "Resource file 'MyProject.#185#' not found", "memory full", etc.).
  535.  
  536. Disease: the project file was approaching/exceeding 16Mb limit on the size of a
  537. resource fork.
  538.  
  539. Cure: by precompiling the TCL headers along with the usual MacHeaders stuff we
  540. were able to reduce the project to a "svelte" 8Mb.  Since doing this we've had
  541. no further corruptions.
  542.  
  543. Thanks to Rick Holzgrafe and Rich Siegel for their help.
  544.  
  545. Eric
  546. egw@p3.lanl.gov
  547.  
  548.  
  549. 
  550. 
  551. Path: ucivax!gateway
  552. From: laborde@imag.fr (Jean-Marie Laborde)
  553. Subject: FSSpec and PBGetFInf (solved)
  554. Message-ID: <9203111837.AA07282@imag.imag.fr>
  555. Newsgroups: fa.think-c
  556. Lines: 45
  557. Date: 11 Mar 92 18:37:52 GMT
  558.  
  559. Thanks to Edward J. Huff but also especially to Francois Menneteau,
  560. I was able to solved the problem of getting old-fashioned file description
  561. from a new FSSpec description and achieved some sort of compatibility
  562. beetween code writen before system 7 and after system 7.
  563. Indeed it suffices to open for a while a working directory that return what
  564. is needed by many old (before system 7) routines:
  565.  
  566. PROBLEM: to fill fields of a "reponse" variable of type SFReply
  567. gieven a variable "st_reponse" of type StandardFileReply.
  568.  
  569. SOLUTION:
  570. {
  571.                      WDPBRec leBloc;
  572.                      ParamBlockRec lebloc;
  573.     OSErr    coderreur;
  574.  
  575.                      leBloc.ioCompletion=0L;
  576.                      leBloc.ioNamePtr        =reponse.fName;   /* here just as a place-holder */
  577.  
  578.                      leBloc.ioVRefNum        =st_reponse.sfFile.vRefNum;
  579.                      leBloc.ioWDProcID        ='XXXX';        /* the signature of the
  580. application*/
  581.                      leBloc.ioWDDirID        =st_reponse.sfFile.parID;
  582.  
  583.                      coderreur=PBOpenWD(&leBloc,FALSE);
  584.                      reponse.vRefNum=leBloc.ioVRefNum;
  585. /* reponse.vRefNum are now correct */
  586.  
  587.                      PtoCstr(st_reponse.sfFile.name);
  588.                      strcpy((char *)reponse.fName,(char *)st_reponse.sfFile.name);
  589.                      CtoPstr(st_reponse.sfFile.name);
  590.                      CtoPstr(reponse.fName);
  591. /* reponse.fName is now correct */
  592. }
  593.  
  594. I hope that people encountering the problem will understand.
  595. Thank you.
  596.  
  597.  
  598. Jean-Marie Laborde          laborde@imag.fr
  599. Laboratoire de Structures Discretes et de Didactique - IMAG
  600. Universite Joseph Fourier - CNRS          BP 53x 38041 Grenoble cedex
  601. FRANCE
  602. (33) 76 51 46 10   (sec 76 51 46 16)      (fax 76 51 45 55)
  603.  
  604. 
  605. 
  606. Path: ucivax!gateway
  607. From: abboud@cedrus.cedrus.com ("Hisham A. Abboud")
  608. Subject: Sound Manager question
  609. Message-ID: <9203111720.AA17490@cedrus.com>
  610. Newsgroups: fa.think-c
  611. Lines: 21
  612. Date: 11 Mar 92 19:33:13 GMT
  613.  
  614.  
  615. Dear netters,
  616.  
  617. I am having a problem using the Sound Manager.  I read a MacRecorder
  618. file, make a 'snd ' resource out of it, create a sound channel, and
  619. try to play it async.  It refuses to play async under system 6.07
  620. (no sound at all), though it works fine under system 7.  Under 6.05,
  621. it refuses to play -sync-!  It always plays async!!
  622.  
  623. I have the feeling the problem is probably in the way I am creating
  624. my 'snd ' resource (I tried both format 1 and 2).  Does any have a sample
  625. source on how this is done?
  626.  
  627. Any hints would be appreciated.
  628.  
  629.                         Hisham.
  630.  
  631.  
  632. Hisham A. Abboud, Cedrus Corp.  [Internet: abboud@cedrus.com]
  633.  
  634.  
  635. 
  636. 
  637. Path: ucivax!gateway
  638. From: jjch@uranie.ais.berger-levrault.fr (John J Chew)
  639. Subject: TC5 disassembler gripes
  640. Message-ID: <9203111851.AA13516@uranie.AIS.Berger-Levrault.FR>
  641. Newsgroups: fa.think-c
  642. Lines: 68
  643. Date: 11 Mar 92 19:57:16 GMT
  644.  
  645. Finally got my TC5 upgrade this week and eagerly started converting a
  646. work in progress.  Got through two files of new and improved pickiness
  647. about argument types before I came to a more interesting problem.
  648.  
  649. I need to store a handle in a code resource.  (Pause for stunned silence.)
  650. It's for an 'atlk' and I don't see any place else to put it.  I put it in
  651. my main() right after the initial two BRA.S's, and referred to it using a
  652. 'LEA 4(main), A0', since that looks nice even if the syntax is a bit loose,
  653. and it did work under TC4.
  654.  
  655. Not under TC5.  'Syntax Error' it helpfully says.  I try 'LEA 4+main, A0'.
  656. This generates the interesting disassembled result 'LEA $0004(A4),A0'.
  657. From which I deduce that... um... everything would be hunky-dory if I
  658. had the address of main in A4, which I don't.
  659.  
  660. Read the fine manual.  It says (p. 264) the DC.W directive can accept a
  661. function name ... and generate the PC-relative offset of the function ...
  662. as a word.  Okay.  I try 'dc.w main'.  Disassembled, this gives me a zero
  663. word.  Looks like 'dc.w anyotherfunction' does the same thing.  This got
  664. me suspicious, and I start thinking more clearly and realize that there
  665. is no way the disassembler could give me a reasonable value here, since
  666. the function that I referenced could well be in another as yet uncompiled
  667. source file.
  668.  
  669. Back to the fine manual.  Read the note on page 168 "The Disassemble
  670. command shows all references to global variables and subroutine calls as
  671. being at 0x0000(A5).  This value is merely a place holder for the
  672. disassembler.  When THINK C compiles your program it uses the correct
  673. offset." With a bit of imagination, I see how a confused disassembler
  674. might decide that if globals to be shown as $0000(A5) then 4 + a global
  675. should be $0004(A5) and 4 + a global in a code resource should be
  676. $0004(A4).  Hmm.
  677.  
  678. In fact, the compiler does generate correct code for both the above
  679. examples.
  680.  
  681. My gripe is therefore directed at the person(s) responsible for the
  682. disassembler, who IMHO has left a few ragged edges.  At the very least
  683. a comment in the listing indicating what has happened seems appropriate.
  684. And I suppose as long as I am listing wishes for a revised disassembler,
  685. I don't see why globals can't be represented symbolically, and traps too
  686. for that matter.  I would also like to be able to click on a source file
  687. in the project window and say Disassemble, just as I can with Compile.
  688. Storage allocated inline by DC directives should be shown as such and should
  689. certainly not interfere with subsequent disassembly.  It would be very
  690. nice if some semblance of C could be shown in the listing in another column,
  691. though I don't know how feasible that would be when optimisation is
  692. enabled.  Maybe a preprocessor directive to insert comments in the
  693. disassembled output.  Every line should be shown in hex as well as
  694. disassembled form.
  695.  
  696. I suppose what I really want is the functionality of ResEdit Code Viewer
  697. that I've been using so happily up until now, and that I will no doubt
  698. continue to use for the time being, if only because its magic little
  699. arrows have spoiled me.
  700.  
  701. Thank you for your attention, and thank you Symantec for what is really
  702. overall an excellent product.
  703.  
  704. John
  705.  
  706. P.S. Is there anyone out there who has worked on writing an 'atlk' before?
  707. --
  708. John J. Chew, III                            * jjchew@AIS.Berger-Levrault.FR
  709. AIS/Berger-Levrault * phone +33 83 35 55 56  * poslfit@UTCS.UToronto.CA
  710. 18, rue des Glacis  * fax   +33 83 37 56 72  * poslfit@utorgpu.bitnet
  711. F-54017 Nancy Cedex * telex BL NANCY 960 212 * Berger.Lev.@AppleLink.Apple.Com
  712. "Les arbres sont souvent en cause dans les accidents de la circulation."
  713. 
  714. 
  715. Path: ucivax!gateway
  716. From: degennar%bmsr4.usc.edu@usc.edu (Raymond Degennaro)
  717. Subject: building an application (revisited)
  718. Message-ID: <9203112255.AA08633@bmsr4.usc.edu>
  719. Newsgroups: fa.think-c
  720. Lines: 8
  721. Date: 11 Mar 92 22:55:33 GMT
  722.  
  723. Here's what I figured-out 'bout my app running fine in the debugger and crashing w/ an unimplemented trap error (appearently) from the finder.  I installed MacBugs, and tried again.  When it dropped into the debugger, the cause was a user break; I left the oopsDebug library in the application.  Any way, after poking around, I found that "new_by_name" was being called by CDLOGDirector::AddOverloadedItem, for an unknown class.
  724.  
  725. So, what it appears is that the Linker, when building an application, strips out "stuff" even when smart linking is off.  Now I just have to find the "stuff" that's been stripped out, and force a reference (or something, time to RTM) to the "stuff" so it isn't stripped.
  726.  
  727. Thanks for the help.  I'll post what I find.
  728.  
  729. Ray DeGennaro
  730. degennar@bmsrs.usc.edu
  731. 
  732. 
  733. Path: ucivax!gateway
  734. From: gris@surf.sics.bu.oz.au (David the Gris)
  735. Subject: Unsubscribe
  736. Message-ID: <9203120151.14860@munnari.oz.au>
  737. Newsgroups: fa.think-c
  738. Lines: 3
  739. Date: 12 Mar 92 01:52:01 GMT
  740.  
  741. Please remove me from the list.  Thanx.
  742. gris
  743. gris@surf.sics.bu.oz.au
  744. 
  745. 
  746. Path: ucivax!gateway
  747. From: cfejm@ux1.cts.eiu.edu (John Miller)
  748. Subject: Re:  Sound Manager Question
  749. Message-ID: <9203121522.AA15694@ux1.cts.eiu.edu>
  750. In-Reply-To: <9203121517.AA23313@ux1.cts.eiu.edu>; from "Mail Delivery Subsystem" at Mar 12, 92 9:17 am
  751. X-Mailer: ELM [version 2.3 PL11]
  752. Newsgroups: fa.think-c
  753. Lines: 48
  754. Date: 12 Mar 92 15:23:22 GMT
  755.  
  756.  > Dear netters,
  757.  >
  758.  > I am having a problem using the Sound Manager.  I read a MacRecorder
  759.  > file, make a 'snd ' resource out of it, create a sound channel, and
  760.  > try to play it async.  It refuses to play async under system 6.07
  761.  > (no sound at all), though it works fine under system 7.  Under 6.05,
  762.  > it refuses to play -sync-!  It always plays async!!
  763.  >
  764.  > I have the feeling the problem is probably in the way I am creating
  765.  > my 'snd ' resource (I tried both format 1 and 2).  Does any have a sample
  766.  > source on how this is done?
  767.  >
  768.  > Any hints would be appreciated.
  769.  >
  770.  >                         Hisham.
  771.  >
  772.  >
  773.  > Hisham A. Abboud, Cedrus Corp.  [Internet: abboud@cedrus.com]
  774.  >
  775.  >
  776.  
  777.  
  778.  The problem is in the documentation for the sound manager.  In Inside Mac
  779.  VI, after going into great (and useful) detail about the different
  780.  structures of both Format 1 and Format 2 sound headers, one expects that
  781.  either of these is somehow accessible to the sampled synth.
  782.  
  783.  Only later (page 22-44) do you find the description of the "structure of
  784.  the standard sampled sopund header used by the sampled sound
  785.  synthesizer..."
  786.  
  787.  What follows is an abbreviated version of the other types.  My solution
  788.  was to create the sound file (in MacRecorder or anything else), save it as
  789.  a resource, and then edit it in ResEdit to conform to the header described
  790.  on 22-44.  This involves merely removing the first (I don't remember how
  791.  many) bytes.  Everything else then works fine.
  792.  
  793.  Good luck.
  794.  
  795.  John
  796. _____________________________
  797.  John Miller
  798.  Music Theory
  799.  Eastern Illinois University
  800.  
  801.  
  802.  
  803.  
  804. 
  805. 
  806. Path: ucivax!gateway
  807. From: REXB@vm.cc.purdue.edu (Rex Bontrager)
  808. Subject: Mac X-Ref book
  809. Message-ID: <9203121352.aa02394@q2.ics.uci.edu>
  810. Newsgroups: fa.think-c
  811. Lines: 10
  812. Date: 12 Mar 92 21:52:52 GMT
  813.  
  814. I visited my local computer bookstore today and noticed that their X-Ref
  815. book from Apple does not yet include Inside Mac Vol VI.  Can anyone
  816. tell me if or when IM VI will be included in the X-Ref?
  817.  
  818.  
  819. Rex Bontrager
  820. Purdue University Computing Center
  821. Bitnet:    rexb@purccvm
  822. Internet:  rexb@vm.cc.purdue.edu
  823. Phone:     (317) 494-1787 ext. 256
  824. 
  825. 
  826. Path: ucivax!gateway
  827. From: jjch@uranie.ais.berger-levrault.fr (John J Chew)
  828. Subject: SystemSevenOrLater?
  829. Message-ID: <9203130146.AA15162@uranie.AIS.Berger-Levrault.FR>
  830. Newsgroups: fa.think-c
  831. Lines: 26
  832. Date: 13 Mar 92 02:52:29 GMT
  833.  
  834. Can someone tell me what the correct way to get FindFolder() defined is
  835. when using TC5?  I found two definitions for it in <Folders.h>, presumably
  836. one for glue and one calling the the trap (but why the MOVEQ #$0, D0?),
  837. one of which is chosen depending on the value of SystemSevenOrLater.
  838.  
  839. In <Types.h>, this macro is set to 0 if it hasn't already been defined,
  840. which makes me think that I should put a #define SystemSevenOrLater 1 in
  841. my Prefix.  Can't see how, but would this break anything?
  842.  
  843. For the moment, I say:
  844.  
  845.   #undef SystemSevenOrLater
  846.   #define SystemSevenOrLater 1
  847.   #include <Folders.h>
  848.   #undef SystemSevenOrLater
  849.   #define SystemSevenOrLater 0
  850.  
  851. and feel silly doing so.
  852.  
  853. John
  854. --
  855. John J. Chew, III                            * jjchew@AIS.Berger-Levrault.FR
  856. AIS/Berger-Levrault * phone +33 83 35 55 56  * poslfit@UTCS.UToronto.CA
  857. 18, rue des Glacis  * fax   +33 83 37 56 72  * poslfit@utorgpu.bitnet
  858. F-54017 Nancy Cedex * telex BL NANCY 960 212 * Berger.Lev.@AppleLink.Apple.Com
  859. "Les arbres sont souvent en cause dans les accidents de la circulation."
  860. 
  861. 
  862. Path: ucivax!gateway
  863. From: dedreb@arco.com
  864. Subject: Re: Mac X-Ref book
  865. Message-ID: <9203131608.AA02214@Arco.COM>
  866. Newsgroups: fa.think-c
  867. Lines: 11
  868. Date: 13 Mar 92 16:09:13 GMT
  869.  
  870. > I visited my local computer bookstore today and noticed that their X-Ref
  871. > book from Apple does not yet include Inside Mac Vol VI.  Can anyone
  872. > tell me if or when IM VI will be included in the X-Ref?
  873. >
  874.  
  875. Just last week, I purchased the updated X-Ref from a book store in the
  876. Dallas area.  Inside Mac VI WAS included in the X-Ref.
  877.  
  878. Richard Beecher
  879. Anchor Beech Software
  880.  
  881. 
  882. 
  883. Path: ucivax!gateway
  884. From: dedreb@arco.com
  885. Subject: Problem with FSpExchangeFiles
  886. Message-ID: <9203131714.AA04202@Arco.COM>
  887. Newsgroups: fa.think-c
  888. Lines: 71
  889. Date: 13 Mar 92 17:15:26 GMT
  890.  
  891. I have implemented a "safe save" strategy in my code as suggested in IM VI
  892. using the FSpExchangeFiles function.  Works like a charm, except that the
  893. temporary file that is created in the process doesn't get deleted.
  894. FSpDelete() returns a file busy error (-47).  The end result is that the
  895. temporary file ends up in the Trash after each restart/reboot.
  896.  
  897. Incidentally, I can delete the file BEFORE calling FSpExchangeFiles, which
  898. makes me think that FSpExchangeFiles opens the data and/or resource forks,
  899. but does not close them.  Am I right?  If so, what can I do to fix the
  900. problem?  Any help would be much appreciated.
  901.  
  902. My code is given below (some portions removed for brevity).
  903.  
  904. Richard Beecher
  905. (dedreb@arco.com)
  906.  
  907.  
  908.  
  909. /****************** SaveSettings *****************/
  910.  
  911. void SaveSettings()
  912. {
  913.     short              foundVRefNum;
  914.     long               foundDirID;
  915.     OSErr              err;
  916.     FSSpec             tempFile;
  917.     short              tempRefNum;
  918.     Str255             tempFileName = { "\pFP Scrap" };
  919.  
  920.  
  921.     /* Create a temporary file for the safe save */
  922.  
  923.     err = FindFolder( kOnSystemDisk, kTemporaryFolderType, kCreateFolder,
  924.                    &foundVRefNum, &foundDirID );
  925.     if ( err )
  926.     ErrorString( "\pCould not find/create the Temporary Items Folder.",
  927. stopError );
  928.     FSMakeFSSpec( foundVRefNum, foundDirID, tempFileName, &tempFile );
  929.  
  930.     FSpCreateResFile( &tempFile, 'trsh', 'trsh', smSystemScript );
  931.     err = ResError();
  932.     if ( err )
  933.     ErrorString( "\pCouldn't create the temporary save file!", stopError );
  934.  
  935. tempRefNum = FSpOpenResFile( &tempFile, fsRdWrPerm );
  936.     err = ResError();
  937.     if ( err != noErr )
  938.    ErrorString( "\pCouldn't open the temporary save file!", stopError );
  939.  
  940.  
  941.     /* Add the resources to the temporary file */
  942.  
  943.     UseResFile( tempRefNum );
  944.     SaveResources();
  945.     CloseResFile( tempRefNum );
  946.  
  947.  
  948.     /* Now, exchange the files */
  949.  
  950. /* err = FSpDelete( &tempFile );  <---- works fine here */
  951.  
  952.     err = FSpExchangeFiles( &tempFile, &settingsFile );  /* settingsFile
  953. already exists */
  954.     if ( err )
  955.     ErrorString( "\pCouldn't finish the save operation!", stopError );
  956.  
  957.     err = FSpDelete( &tempFile );  /* returns a file busy error -47 */
  958.     if ( err )
  959.     ErrorString( "\pCouldn't delete the temporary file!", stopError );
  960. }
  961.  
  962. 
  963. 
  964. Path: ucivax!gateway
  965. From: tv0c+@andrew.cmu.edu (Thomas Edward Van Lenten)
  966. Subject: Gray Text
  967. Message-ID: <wdkFXQm00WC=Q1KEh_@andrew.cmu.edu>
  968. Newsgroups: fa.think-c
  969. Lines: 12
  970. Date: 13 Mar 92 21:05:25 GMT
  971.  
  972.     Can anyone tell me an easy way to draw grey text?  I need to be able
  973. to dim some text in the same manner that a button dims when not allowed.
  974.  I see no easy way to do this, so I'm open to any ideas.
  975.  
  976. TVL
  977. =========================================================
  978.  Tom Van Lenten                               MacMail II
  979.  tvl@cmu.edu                            Special Projects
  980.  tv0c@andrew.cmu.edu          Carnegie Mellon University
  981.  bitnet%"tv0c@andrew"                     Pittsburgh, PA
  982. =========================================================
  983.  
  984. 
  985. 
  986. Path: ucivax!gateway
  987. From: jjch@uranie.ais.berger-levrault.fr (John J Chew)
  988. Subject: PC-relative addresses
  989. Message-ID: <9203132018.AA00248@uranie.AIS.Berger-Levrault.FR>
  990. Newsgroups: fa.think-c
  991. Lines: 12
  992. Date: 13 Mar 92 21:30:39 GMT
  993.  
  994. Is there a good reason why THINK C uses A4-relative addressing to get at
  995. globals in a single-segment code resource?  Why can't it just use PC-relative
  996. addressing as I think it does for string literals, and not require the
  997. manipulation of the A4 register?
  998.  
  999. John
  1000. --
  1001. John J. Chew, III                            * jjchew@AIS.Berger-Levrault.FR
  1002. AIS/Berger-Levrault * phone +33 83 35 55 56  * poslfit@UTCS.UToronto.CA
  1003. 18, rue des Glacis  * fax   +33 83 37 56 72  * poslfit@utorgpu.bitnet
  1004. F-54017 Nancy Cedex * telex BL NANCY 960 212 * Berger.Lev.@AppleLink.Apple.Com
  1005. "Les arbres sont souvent en cause dans les accidents de la circulation."
  1006. 
  1007. 
  1008. Path: ucivax!gateway
  1009. From: siegel@world.std.com (Rich Siegel)
  1010. Subject: Re:  PC-relative addresses
  1011. Message-ID: <9203140340.AA24190@world.std.com>
  1012. Newsgroups: fa.think-c
  1013. Lines: 4
  1014. Date: 14 Mar 92 03:40:44 GMT
  1015.  
  1016. Among other things, globals are not read-only. It's easy to do a
  1017. MOVE xxx, y(a4) than it is to do a LEA z(pc), An, MOVE xxx, (An).
  1018.  
  1019. R.
  1020. 
  1021. 
  1022. Path: ucivax!gateway
  1023. From: resnick@cogsci.uiuc.edu (Pete Resnick)
  1024. Subject: Re: SystemSevenOrLater?
  1025. Message-ID: <199203142023.AA08321@tarski.cogsci.uiuc.edu>
  1026. X-Mailer: Eudora [version 1.3b28 MacTCP]
  1027. Newsgroups: fa.think-c
  1028. Lines: 16
  1029. Date: 14 Mar 92 20:24:31 GMT
  1030.  
  1031. >In <Types.h>, this macro is set to 0 if it hasn't already been defined,
  1032. >which makes me think that I should put a #define SystemSevenOrLater 1 in
  1033. >my Prefix.  Can't see how, but would this break anything?
  1034.  
  1035. That should be fine unless, as most of us, you use MacHeaders, in which
  1036. case you have to rebuild MacHeaders to get it to stick. Then again, if you
  1037. are including Folders.h in your source file, then adding it to your prefix
  1038. should work fine.
  1039.  
  1040. pr
  1041. --
  1042. Pete Resnick        (...so what is a mojo, and why would one be rising?)
  1043. Graduate assistant - Philosophy Department, Gregory Hall, UIUC
  1044. System manager - Cognitive Science Group, Beckman Institute, UIUC
  1045. Internet: resnick@cogsci.uiuc.edu
  1046.  
  1047. 
  1048. 
  1049. Path: ucivax!gateway
  1050. From: nagel@ics.uci.edu (Mark Nagel)
  1051. Subject: ARCHIVE: Project Printer FKEY
  1052. Message-ID: <738.700617403@ics.uci.edu>
  1053. Newsgroups: fa.think-c
  1054. Reply-To: phils@chaos.cs.brandeis.edu
  1055. Lines: 28
  1056. Date: 14 Mar 92 23:56:50 GMT
  1057.  
  1058.  
  1059. /*****************************************************************************/
  1060.  
  1061. From: Phil Shapiro <phils@chaos.cs.brandeis.EDU>
  1062. Date: Tue, 10 Mar 92 22:50:28 -0500
  1063. Subject: Project Printer FKEY 1.0 for THINK C users
  1064.  
  1065. Here's a FKEY for THINK C programmers that produces a list of the
  1066. files in C project, including segmentation information. This is a
  1067. no-frills hack, but it can come in handy when you need to rebuild a
  1068. large project from scratch.
  1069.  
  1070. To use it, you first need to install the FKEY in your System file or
  1071. in THINK C itself. Once installed, just invoke the FKEY after opening
  1072. the project you want to list. The file names, object sizes, and
  1073. segmentation information is pasted into a new THINK C edit window.
  1074.  
  1075. For more info, see the enclosed ReadMe.
  1076.  
  1077.     -phil
  1078. ----
  1079.    Phil Shapiro                                   Software Engineer
  1080.    Language Products Group                     Symantec Corporation
  1081.            Internet: phils@cs.brandeis.edu
  1082.  
  1083. /*****************************************************************************/
  1084.  
  1085. [saved as: /mac/think-c/symantec/proj-printer-fkey.hqx; 5K]
  1086. 
  1087. 
  1088. Path: ucivax!gateway
  1089. From: nagel@ics.uci.edu (Mark Nagel)
  1090. Subject: ARCHIVE: CTreeView
  1091. Message-ID: <1394.700618052@ics.uci.edu>
  1092. Newsgroups: fa.think-c
  1093. Reply-To: wagner@bnlux1.bnl.gov
  1094. Lines: 16
  1095. Date: 15 Mar 92 00:07:40 GMT
  1096.  
  1097.  
  1098. /*****************************************************************************/
  1099.  
  1100. From: david wagner <wagner@bnlux1.bnl.GOV>
  1101. Date: Sat, 7 Mar 92 10:09:45 -0500
  1102.  
  1103.      I have placed in the /incoming directory a file called
  1104. ctreeview.hqx.  This contains a simple class I wrote for people (like me)
  1105. who are beginners at programming with TCL, and may have difficulty
  1106. visualizing the visual hierarchy and the chain of command.  This class
  1107. places a window on the screen which will display these things.
  1108.                                                            David Wagner
  1109.  
  1110. /*****************************************************************************/
  1111.  
  1112. [saved as: /mac/think-c/classes/ctreeview.hqx; 20K]
  1113. 
  1114. 
  1115. Path: ucivax!gateway
  1116. From: iron@imag.fr (Francois Menneteau)
  1117. Subject: TCL ETS patch question
  1118. Message-ID: <9203171159.AA05427@imag.imag.fr>
  1119. Newsgroups: fa.think-c
  1120. Organization: IMAG Institute, University of Grenoble, France
  1121. Lines: 32
  1122. Date: 17 Mar 92 11:59:21 GMT
  1123.  
  1124.  
  1125. Here is the patch use in the TCL libraries for ExitToShell():
  1126.  
  1127.      static long origETS, origLoadSeg;
  1128.  
  1129.      static pascal void ETS_Patch( void)
  1130.      {
  1131.          long realETS;
  1132.          long oldA5 = SetCurrentA5();
  1133.  
  1134.          if (gApplication)
  1135.              gApplication->RemovePatches();
  1136.          realETS = origETS;
  1137.  
  1138.          SetA5( oldA5);
  1139.         CallPascal( realETS);
  1140.      }
  1141.  
  1142. My question is how can this patch work when it is an other application that
  1143. call ExitToShell? (SetCurrentA5() puts CurrentA5 low memory into A5, but
  1144. this A5 can be different from my application. So how it is possible to test
  1145. for the existence of the gApplication global variable?).
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151. --
  1152. Francois Menneteau ()   __|||||__   () "... I had their lives in my hands
  1153. ================== ()    /O   O\    () their fate their fortune in my visions
  1154. iron@imag.fr       ()    - .|. -    () No one believed in my true prophecy
  1155. ================== ()     \=^=/     () And now it's too late."  (Iron Maiden)
  1156. 
  1157. 
  1158. Path: ucivax!gateway
  1159. From: ephraim@think.com (Ephraim Vishniac)
  1160. Subject: Re: TCL ETS patch question
  1161. Message-ID: <9203171406.AA27864@leander.think.com>
  1162. In-Reply-To: Your message of "17 Mar 92 11:59:21 GMT."
  1163.              <9203171159.AA05427@imag.imag.fr>
  1164. Newsgroups: fa.think-c
  1165. Lines: 32
  1166. Date: 17 Mar 92 14:06:59 GMT
  1167.  
  1168.  
  1169.    From: Francois Menneteau <iron@imag.fr>
  1170.    Date: 17 Mar 92 11:59:21 GMT
  1171.  
  1172.    Here is the patch use in the TCL libraries for ExitToShell():
  1173.  
  1174.      static long origETS, origLoadSeg;
  1175.  
  1176.      static pascal void ETS_Patch( void)
  1177.      {
  1178.          long realETS;
  1179.          long oldA5 = SetCurrentA5();
  1180.  
  1181.          if (gApplication)
  1182.              gApplication->RemovePatches();
  1183.          realETS = origETS;
  1184.  
  1185.          SetA5( oldA5);
  1186.         CallPascal( realETS);
  1187.      }
  1188.  
  1189.    My question is how can this patch work when it is an other application
  1190.    that call ExitToShell? (SetCurrentA5() puts CurrentA5 low memory into
  1191.    A5, but this A5 can be different from my application. So how it is
  1192.    possible to test for the existence of the gApplication global
  1193.    variable?).
  1194.  
  1195. Under Multifinder, an application's patches are part of its
  1196. environment. They get swapped out when another application runs. So,
  1197. no other application will execute your application's patches. Under
  1198. Unifinder, there is no other application. So, you're safe either way.
  1199.  
  1200. 
  1201. 
  1202. Path: ucivax!gateway
  1203. From: phils@chaos.cs.brandeis.edu (Phil Shapiro)
  1204. Subject: TCL ETS patch question
  1205. Message-ID: <9203171412.AA04640@chaos.cs.brandeis.edu>
  1206. In-Reply-To: Francois Menneteau's message of 17 Mar 92 11:59:21 GMT <9203171159.AA05427@imag.imag.fr>
  1207. Newsgroups: fa.think-c
  1208. Lines: 25
  1209. Date: 17 Mar 92 14:13:11 GMT
  1210.  
  1211. >>>>> On 17 Mar 92 11:59:21 GMT, Francois Menneteau <iron@imag.fr> said:
  1212.  
  1213.  > Here is the patch use in the TCL libraries for ExitToShell():
  1214.  
  1215.     [ code for ETS_Patch() removed ]
  1216.  
  1217.  > My question is how can this patch work when it is an other
  1218.  > application that call ExitToShell? (SetCurrentA5() puts CurrentA5
  1219.  > low memory into A5, but this A5 can be different from my
  1220.  > application. So how it is possible to test for the existence of the
  1221.  > gApplication global variable?).
  1222.  
  1223. When more than one application is running (under MultiFinder or System
  1224. 7), each application has its own table of patched traps. If a TCL
  1225. application patches ExitToShell, then that patch is only "visible" on
  1226. that application layer. This is accomplished by a patch that's
  1227. installed at boot time by the System which collects calls to
  1228. SetTrapAddress. These patches are swapped out during any context
  1229. switch, minor or major.
  1230.  
  1231.     -phil
  1232. ----
  1233.    Phil Shapiro                                   Software Engineer
  1234.    Language Products Group                     Symantec Corporation
  1235.            Internet: phils@cs.brandeis.edu
  1236. 
  1237. 
  1238. Path: ucivax!gateway
  1239. From: igorl@ncsa.uiuc.edu (Igor Livshits)
  1240. Subject: Bus errors
  1241. Message-ID: <9203171527.AA20137@newton.ncsa.uiuc.edu>
  1242. Newsgroups: fa.think-c
  1243. Lines: 63
  1244. Date: 17 Mar 92 15:28:11 GMT
  1245.  
  1246. Good morning,
  1247.  
  1248. I am writing an object that handles folder and file information.  To test
  1249. for errors from Toolbox routines, I call FailOSErr(error).  If error is
  1250. anything but noErr, a bus error is triggered as soon as FailOSErr returns
  1251. to the main program.
  1252.  
  1253. I use far code and data.  I have also recompiled oopsdebug with the far
  1254. options on.  Another symptom is that NO error alert is presented when error
  1255. != noErr.
  1256.  
  1257. I am still tinkering with the libraries and my code, and I think the
  1258. problem is with the debugger calls.  If someone has a clue about this,
  1259. please drop me a note.
  1260.  
  1261. example:
  1262. /*===---------------===*/
  1263.  
  1264. long    CIsleDataFile::CreateFolder(Str63 folderName)
  1265. Begin
  1266.     long    createdDirID;                        //    Directory ID of the folder we will create
  1267.     OSErr    error;                                    //    Possible error condition
  1268.  
  1269.     if (error= DirCreate(volNum, dirID, folderName, &createdDirID))
  1270.     {                                                            //    Oops!
  1271.         if (error == dupFNErr)
  1272.         {                                                        //    It already exists, what is its directory ID?
  1273.             CInfoPBRec    specs;                //    The duplicate file specifications
  1274.  
  1275.             specs.dirInfo.ioCompletion= Null;
  1276.             specs.dirInfo.ioNamePtr=        folderName;
  1277.             specs.dirInfo.ioVRefNum=        volNum;
  1278.             specs.dirInfo.ioFDirIndex=    kDefault;
  1279.             specs.dirInfo.ioDrDirID=        dirID;
  1280.  
  1281.             FailOSErr (PBGetCatInfo(&specs, False) );
  1282.             if (specs.dirInfo.ioFlAttrib & kDirTest)
  1283.                 createdDirID= specs.dirInfo.ioDrDirID;
  1284.             else
  1285.                 FailOSErr(error);                //    The duplicate is a file, not a directory!
  1286.         }
  1287.         else
  1288.             FailOSErr(error);
  1289.     }
  1290.  
  1291.     return createdDirID;
  1292. End
  1293.  
  1294. /*===---------------===*/
  1295.  
  1296.  
  1297.  
  1298. Many thanks, Igor
  1299.  
  1300. <=====-----------------------------------------=====>
  1301.  
  1302.  Igor S. Livshits               Education Specialist
  1303.  NCSA                                 e: igorl@uiuc.edu
  1304.  University of Illinois         w: (217) 244-5606
  1305.  Champaign-Urbana campus        h: (217) 344-3934
  1306.  
  1307. <=====-----------------------------------------=====>
  1308.  
  1309. 
  1310. 
  1311. Path: ucivax!gateway
  1312. From: im@hydra.carleton.ca (Ian McEachern VE3PFH)
  1313. Subject: Debugger Bombs with large arrays
  1314. Message-ID: <9203172137.AA18878@hydra.carleton.ca>
  1315. X-Mailer: ELM [version 2.3 PL11]
  1316. Newsgroups: fa.think-c
  1317. Reply-To: im@hydra.carleton.ca
  1318. Lines: 26
  1319. Date: 17 Mar 92 22:01:22 GMT
  1320.  
  1321. I'm having a problem getting a program developed on a previous version
  1322. of think-c running on version 5.0.2.
  1323.  
  1324. The debugger (and the program when compiled) bombs when this routine is called:
  1325.  
  1326. void foo(long *ptr)
  1327.  
  1328.     int   big[8][1500];
  1329.     long  bigtoo[1500];
  1330.  
  1331.  
  1332. etc.
  1333.  
  1334. This did work on the older compilers and now crashes hard every time the
  1335. routine is called.  I've tried Far DATA and CODE with the same results ...
  1336. tried recompiling all the libraries too, with no luck.
  1337.  
  1338. When I reduce the dimesions of the array to 150 it runs (seemingly) normal.
  1339.  
  1340. Does anyone have an explanation, solution to my problem?
  1341.  
  1342. Thanks
  1343.  
  1344. Ian McEachern
  1345.  
  1346.  
  1347. 
  1348. 
  1349. Path: ucivax!gateway
  1350. From: siegel@world.std.com (Rich Siegel)
  1351. Subject: Re:  Debugger Bombs with large arrays
  1352. Message-ID: <9203180222.AA13723@world.std.com>
  1353. Newsgroups: fa.think-c
  1354. Lines: 5
  1355. Date: 18 Mar 92 02:22:57 GMT
  1356.  
  1357. You're overrunning your stack, plain and simple - you should either use
  1358. a global or a dynamically allocated array, or use SetApplLimit to make
  1359. more room for the stack.
  1360.  
  1361. R.
  1362. 
  1363. 
  1364. Path: ucivax!gateway
  1365. From: bobm@imagine.convex.com ("Bob (Mr. Grape loves ME!) Miller" )
  1366. Subject: Re: Debugger Bombs with large arrays
  1367. Message-ID: <9203172349.AA26358@Mr_Grape.convex.com>
  1368. In-Reply-To: Your message of 17 Mar 92 22:01:22 +0000.
  1369.              <9203172137.AA18878@hydra.carleton.ca>
  1370. Newsgroups: fa.think-c
  1371. X-Quote-Of-The: Patriotism is the veneration of real estate above principles.
  1372.                                         -- George Jean Nathan
  1373. Lines: 15
  1374. Date: 18 Mar 92 17:32:05 GMT
  1375.  
  1376. > The debugger (and the program when compiled) bombs when this routine
  1377. > is called:
  1378. >
  1379. > void foo(long *ptr)
  1380. >
  1381. >     int   big[8][1500];
  1382. >     long  bigtoo[1500];
  1383.  
  1384. That brings up an interesting question.  What is the default stack
  1385. size on the Mac, and how can you vary it?  (This is probably a FAQ;
  1386. sorry about that.)
  1387.  
  1388.  
  1389.                     K<bob>
  1390.  
  1391. 
  1392. 
  1393. Path: ucivax!gateway
  1394. From: gerhard@rana.usc.edu
  1395. Subject: thePort (?)
  1396. Message-ID: <9203192100.AA18033@mizar.usc.edu>
  1397. Newsgroups: fa.think-c
  1398. Lines: 11
  1399. Date: 19 Mar 92 21:00:55 GMT
  1400.  
  1401. I apologize for asking this question - I should
  1402. remember the answer, but I do not.  When I compile
  1403. a program, I get the message "thePort not declared"
  1404. (in the line InitGraf(&thePort); )
  1405.  
  1406. What am I missing?
  1407.  
  1408. If this is too simple a ? for the list, please say so.
  1409. Pls reply to me.
  1410. Peter Gerhardstein (gerhard@rana.usc.edu)
  1411.  
  1412. 
  1413. 
  1414. Path: ucivax!gateway
  1415. From: sankar@cuplvx.ap.columbia.edu
  1416. Subject: Mailing list for THINK-C
  1417. Message-ID: <9203191125.aa26364@q2.ics.uci.edu>
  1418. Newsgroups: fa.think-c
  1419. Prev-Resent-From: Mark Nagel <nagel@ics.uci.edu>
  1420. Prev-Resent-Message-Id: <9203192031.AA20530@Cigna.COM>
  1421. Lines: 11
  1422. Prev-Resent-To: cigna!nagel
  1423. Date: 19 Mar 92 21:57:32 GMT
  1424. Prev-Resent-Date: Thu, 19 Mar 92 11:25:53 PST
  1425.  
  1426. Hello,
  1427.  
  1428.         I thought there existed a list server for stuff related to THINK-C
  1429. and I wanted to subscribe for the same. If a list server does exist, then
  1430. please add my name to the mailing list. I am a beginer with regard to
  1431. programming on a Mac and I have just started using THINK-C.
  1432.  
  1433.                 -- Vijaya Sankar
  1434.  
  1435.  sankar@cuplvx.ap.columbia.edu   (the new INET address)
  1436.  
  1437. 
  1438. 
  1439. Path: ucivax!gateway
  1440. From: cmiller@math.umass.edu (Craig Miller)
  1441. Subject: Re:  Debugger Bombs with large arrays
  1442. Message-ID: <9203191651.AA15505@laurel.math.umass.edu>
  1443. Newsgroups: fa.think-c
  1444. Lines: 50
  1445. Date: 19 Mar 92 23:25:14 GMT
  1446.  
  1447. <im@hydra.carleton.ca> writes:
  1448.  
  1449. > The debugger (and the program when compiled) bombs when this routine
  1450. > is called:
  1451. >
  1452. > void foo(long *ptr)
  1453. >
  1454. >       int   big[8][1500];
  1455. >       long  bigtoo[1500];
  1456.  
  1457. <siegel@world.std.com> replies:
  1458.  
  1459. > You're overrunning your stack, plain and simple - you should either use
  1460. > a global or a dynamically allocated array, or use SetApplLimit to make
  1461. > more room for the stack.
  1462.  
  1463. <bobm@imagine.convex.com> comments:
  1464.  
  1465. > That brings up an interesting question.  What is the default stack
  1466. > size on the Mac, and how can you vary it?
  1467.  
  1468. Is it really true?  Think C has no automatic runtime check for a
  1469. stack overflow? I've been programming professionally with Think C
  1470. for two years, assuming that any stack overflow problems would
  1471. generate some kind of runtime error message, just like all the other
  1472. systems I've programmed in.
  1473.  
  1474. A quick check in the Think C User's Manual (for v.4) reveals only
  1475. one mention of stack size and/or overflow:  p.450 has a title "Data
  1476. segment too big/Stack frame too big" and explains how to dynamically
  1477. allocate memory instead of using automatic memory from the stack. I
  1478. see no mention of stack size,  changing it or checks for overflow.
  1479. I.M. vol.II, chap. 1 (The Memory Manager) says that the initial
  1480. application stack size is 8k and can be increased by reducing the
  1481. application heap size because they share the same block of memory.
  1482. It also mentions the "stack sniffer" which checks for stack overflow
  1483. after the fact ONLY IF IT HAPPENS DURING A VERTICAL RETRACE PERIOD
  1484. (and generates a system error alert). I.M IV, p.78 documents the
  1485. StackSpace function which returns the currently available stack
  1486. space.
  1487.  
  1488. If this is correct, why doesn't Think C, or even the debugger use the
  1489. StackSpace function function for a REAL stack overflow check?
  1490. Please verify my statements or certify me a raving reactionary
  1491. lunatic.
  1492.  
  1493. Craig D. Miller, Computer Programmer       \  cmiller@math.umass.edu
  1494. Scientific Reasoning Research Institute     \      tel. 413-545-5865
  1495. SRRI, Hasbrouck Lab, Univ. of Massachusetts  \
  1496. Amherst, MA  01003                       USA  \
  1497. 
  1498. 
  1499. Path: ucivax!gateway
  1500. From: kkirksey@eng.auburn.edu ("Kenneth B. Kirksey")
  1501. Subject: Update Offer Expires?
  1502. Full-Name: Kenneth B. Kirksey
  1503. Message-ID: <9203200048.AA09201@eng.auburn.edu>
  1504. Newsgroups: fa.think-c
  1505. Lines: 7
  1506. Date: 20 Mar 92 00:48:54 GMT
  1507.  
  1508.  
  1509. Well, I finally graduated (hurrah!) and now I've got the money to upgrade
  1510. from Think-C 4.0 to 5.0. I pulled out the upgrade card that Symantec sent me,
  1511. and it said that the upgrade offer expired December 31, 1991. Bummers! How
  1512. strict are they about this? Could I just send in the card and a check anyway?
  1513.  
  1514.                                      Ken
  1515. 
  1516. 
  1517. Path: ucivax!gateway
  1518. From: pmiller@gneiss.bmr.gov.au (Peter Miller)
  1519. Subject: Re: Debugger Bombs with large arrays
  1520. Message-ID: <9203200424.AA13146@gneiss.bmr.gov.au>
  1521. In-Reply-To: Your message of 19 Mar 92 23:25:14 +0000.
  1522.              <9203191651.AA15505@laurel.math.umass.edu>
  1523. Newsgroups: fa.think-c
  1524. Lines: 52
  1525. Date: 20 Mar 92 04:22:51 GMT
  1526.  
  1527.  
  1528. Craig Miller <cmiller@math.umass.edu> writes:
  1529. > Is it really true?  Think C has no automatic runtime check for a
  1530. > stack overflow? I've been programming professionally with Think C
  1531. > for two years, assuming that any stack overflow problems would
  1532. > generate some kind of runtime error message, just like all the other
  1533. > systems I've programmed in.
  1534.  
  1535. Whom do you thinks should be doing the checking?
  1536. Should the compiler generate stack checking code immediately before each
  1537. LINK opcode it generates, to make sure the imminent LINK will not bang into
  1538. the stack?  If it did find a problem, what then who and how does it notify,
  1539. since the _compiler_ has no idea if the code will be used in a TCL environment,
  1540. dumb application, code resource, or burnt into a rom and put into a toy train!
  1541.  
  1542. I know I have been spoiled by VM environments - when my program wants more
  1543. stack, it goes and grabs it.  This generates page faults, and the operating
  1544. system either gives me more memory (because it's a stack opcode) or bombs my
  1545. process with a memory violation.  If, in some weird situation, there happened
  1546. to be 4GB of page disk and my process just happened to consume 4GB of memory,
  1547. and the stack pointer overran the heap, I know of no VM system which would tell
  1548. me "memory violation, your stack just trashed your heap".  The UNIX box I am
  1549. writing this on certainly has no such error, but then, it doesn't have
  1550. 4GB of page disk either, so it can never happen :-).
  1551.  
  1552. The Mac, even in its more expensive incarnations, still allocates a finite
  1553. amount of space to each "process" (I use the term loosely).  There is no
  1554. elegant VM environment for each process, and so there is no dynamic allocation
  1555. of (virtual) memory for the process's stack.  Your heap starts at one end of
  1556. the process' space, and the stack starts at the other.  All of the memory you
  1557. are ever going to get has already been given to you, and the OS doesn't much
  1558. care if you shoot yourself in the foot.  The VBL check, as you have found, is
  1559. mostly useless.
  1560.  
  1561. The "VM" available on the more expensive Macs (yes, I am bitter about apple
  1562. abandoning we humble Plus users) is mostly hyp: is simply allows you to make
  1563. you mac look like its got LOTS of memory to allocate fixed sized chunks in,
  1564. rather than just the little amount of pyhsical: process memory is still
  1565. allocated the same way.
  1566.  
  1567. The answer to "who should check the (imminent) stack overflow?" is,
  1568. as various sources have said, "use the Memory Manager".
  1569. The Memory Manager checks the stack, and it has a way of reporting failure.
  1570. TCL adds even more wrapping, allowing elegant recovery.
  1571. What to do about lack of space, heap or stack, is application
  1572. and environment specific: there is no point putting up a dialog box asking
  1573. them to close windows if the only person who will see it is the little plastic
  1574. man in the model train's cab.
  1575.  
  1576. Regards
  1577. Peter Miller.
  1578. (software engineer and C addict)
  1579. 
  1580. 
  1581. Path: ucivax!gateway
  1582. From: gt0657c@prism.gatech.edu (geoff george)
  1583. Subject: Setting stack size
  1584. Message-ID: <9203200816.AA16884@prism.gatech.edu>
  1585. Newsgroups: fa.think-c
  1586. Lines: 30
  1587. Date: 20 Mar 92 08:16:51 GMT
  1588.  
  1589. bobm@imagine.convex.com asks:
  1590.  > That brings up an interesting question.  What is the default stack
  1591.  > size on the Mac, and how can you vary it?  (This is probably a FAQ;
  1592.  > sorry about that.)
  1593.  >
  1594.  >                                        K<bob>
  1595.  
  1596. Here's the code I use, as the very first statement my apps execute:
  1597.  
  1598.    #define STACK_SIZE        (48 * 1024L)
  1599.  
  1600.    SetApplLimit (CurStackBase - STACK_SIZE);
  1601.    InitGraf ((Ptr) & thePort);
  1602.    InitFonts ();
  1603.    ...
  1604.  
  1605. CurStackBase is a low-memory global at 0x908, of type Ptr, defined in
  1606. <MemMgr.h> in TC4 and in <LoMem.h> in TC5. SetAppLimit sets where the
  1607. end of the heap is. These are documented in the Memory Manager section
  1608. of IM I-III. I don't know whether this works under A/UX - anyone?
  1609.  
  1610. geoff
  1611. --
  1612. geoff george    geoff@remvax.gatech.edu    (my vax)
  1613.         or    gt0657c@prism.gatech.edu   (a touch of warmth from GaTech OCS)
  1614.  
  1615. "Ordinary f---ing people - I hate 'em. Ordinary person spends his life avoiding
  1616. tense situations; repo man spends his life getting INTO tense situations."
  1617.  
  1618.  
  1619. 
  1620. 
  1621. Path: ucivax!gateway
  1622. From: potts@itl.itd.umich.edu (Paul Potts)
  1623. Subject: THINIK C stack overflow check
  1624. Message-ID: <9203201416.AA04221@itl.itd.umich.edu>
  1625. Newsgroups: fa.think-c
  1626. Lines: 15
  1627. Date: 20 Mar 92 14:16:50 GMT
  1628.  
  1629.  
  1630. The C language, in general, doesn't provide for things like stack overflow
  1631. checks. (Some implementations of C for DOS/Windows support a "stack probe,"
  1632. which checks how much stack space is available before calling a function and
  1633. placing parameters and variables on the stack). One of the goals of C was to
  1634. use only a very small runtime library, or no runtime library at all if no
  1635. functions such as standard I/O need to be linked in.
  1636.  
  1637. It raises an interesting idea, though, especially for purposes of debugging.
  1638. Has anyone written code which does stack checking before calling functions?
  1639. It would be more difficult to check stack size before declaring variables,
  1640. and this would probably have to be a compiler option, but I imagine that it
  1641. could be done without too much pain.
  1642.  
  1643. -Paul Potts-
  1644. 
  1645. 
  1646. Path: ucivax!gateway
  1647. From: rodrigo@cmsun.cmf.nrl.navy.mil
  1648. Subject: (none)
  1649. Message-ID: <9203201534.AA07567@cmsun.cmf.nrl.navy.mil>
  1650. Newsgroups: fa.think-c
  1651. Lines: 17
  1652. Date: 20 Mar 92 15:38:05 GMT
  1653.  
  1654. I am using TCL and I am building menus on the fly.
  1655. I have been able to add menu items as well. No problkems here.
  1656.  
  1657. Now I would like to add command-key options to some of the menu
  1658. items that I have built. Can anybody give me an idea how to do this?
  1659.  
  1660. I have always done this in ResEDit.
  1661.  
  1662. Is there an obsacureobscure method in CBartender that does this?
  1663.  
  1664. Any help on this is very much apperciated.
  1665.  
  1666. TaThanks
  1667.  
  1668. rodrigo@cmsun.cmf.nrl.navy.mil
  1669.  
  1670.  
  1671. 
  1672. 
  1673. Path: ucivax!gateway
  1674. From: narf@u.washington.edu (Francis Taylor)
  1675. Subject: THINIK C stack overflow check
  1676. Message-ID: <9203210929.AA24982@milton.u.washington.edu>
  1677. In-Reply-To: Paul Potts's message of 20 Mar 92 14:16:50 GMT <9203201416.AA04221@itl.itd.umich.edu>
  1678. Newsgroups: fa.think-c
  1679. Reply-To: narf@hitl.washington.edu
  1680. Lines: 5
  1681. Date: 22 Mar 92 08:49:38 GMT
  1682.  
  1683. It's my impression (I don't have my Inside Mac with me right now) that
  1684. the Mac has a "stack sniffer" that runs during vertical blank.  Of
  1685. course, that won't do you very much good, for, as they point out, the
  1686. stack can easily run into the heap and back off again without the
  1687. sniffer catching it.  It will catch the most egregious cases, though.
  1688. 
  1689. 
  1690. Path: ucivax!gateway
  1691. From: cjm@unb.ca (Chris McNeil)
  1692. Subject: Text edit and multiple wind
  1693. Message-ID: <00186.2783949763.5153@macsmtp.csd.unb.ca>
  1694. Newsgroups: fa.think-c
  1695. X-Charset: MACINTOSH
  1696. Organization: University of New Brunswick     Fredericton NB Canada
  1697. Lines: 13
  1698. Date: 22 Mar 92 09:02:12 GMT
  1699.  
  1700. Subject:   Text edit and multiple windows
  1701. A simple programming question. I have an application that creates multiple
  1702. windows and uses text edit to write stuff to them. I the use FindWindow to
  1703. get the WindowPtr when I select a window. My question is how do I get the
  1704. tePtr for the text that is in the window I select ?
  1705.  
  1706. Chris McNeil
  1707. Systems Support
  1708. University of New Brunswick
  1709. Fredericton NB Canada
  1710. cjm@unb.ca
  1711.  
  1712.  
  1713. 
  1714. 
  1715. Path: ucivax!gateway
  1716. From: Mark.Alldritt@vancouver.osiware.bc.ca (Mark Alldritt)
  1717. Subject: Adding objects
  1718. Message-ID: <9203201719*Mark.Alldritt@Vancouver.osiware.bc.ca>
  1719. Newsgroups: fa.think-c
  1720. Lines: 8
  1721. Date: 22 Mar 92 09:34:52 GMT
  1722.  
  1723. Hi,
  1724.  
  1725. Is there a way in THINK C to add object classes to a program that has already
  1726. been linked?  I want to add something like a resource that contains the
  1727. implementation of an object class to an existing program.
  1728.  
  1729. Thanks in advance.
  1730. -Mark
  1731. 
  1732. 
  1733. Path: ucivax!gateway
  1734. From: bobm@imagine.convex.com (Bob Miller)
  1735. Subject: Graf3D?
  1736. Message-ID: <9203221938.AA18178@Mr_Grape.convex.com>
  1737. Newsgroups: fa.think-c
  1738. Lines: 8
  1739. Date: 22 Mar 92 19:39:22 GMT
  1740.  
  1741. Think C contains a library, Graf3D, and an include file, Graf3D.h.
  1742. I've been trying to find some documentation of this library.
  1743.  
  1744. Can someone point me toward Graf3D documentation?
  1745.  
  1746. Thanks.
  1747.  
  1748.                                         K<bob>
  1749. 
  1750. 
  1751. Path: ucivax!gateway
  1752. From: walshag@hermes.bc.edu (WALSHAG)
  1753. Subject: Beyond 32k TextEdit
  1754. Message-ID: <9203230650.aa18203@Paris.ics.uci.edu>
  1755. Return-receipt-to: "WALSHAG" <walshag@hermes.bc.edu>
  1756. Newsgroups: fa.think-c
  1757. Lines: 22
  1758. Date: 23 Mar 92 15:36:57 GMT
  1759.  
  1760. Re:  Using TCL to create text documents greater that 32k
  1761.  
  1762. Does anyone have sample code for creating (under TCL) text documents larger
  1763. than 32k (the limit on TextEdit)?
  1764.  
  1765. Using TCL, you are told to create a subclass of CAbstractText and define your
  1766. own buffer.  This doesn't sound too bad, though I would prefer not to re-invent
  1767. the wheel.... if someone has already done it
  1768. and would be willing to share it, I would appreciate it.
  1769.  
  1770. While I'm on the topic of extending TextEdit, has anyone used (or know
  1771. of) a commercially available TextEdit extension package for TCL (such as the
  1772. "Word Solution Engine", which, to my knowlege does not support TCL or even C)?
  1773.  
  1774. Thanks,
  1775. Aaron Walsh
  1776. Boston College, IPS
  1777. (walshag@bcvms.bc.edu)
  1778.  
  1779.  
  1780.  
  1781.  
  1782. 
  1783. 
  1784. Path: ucivax!gateway
  1785. From: ehorvath@attmail.com
  1786. Subject: Re: Beyond 32k TextEdit
  1787. Original-From: attmail!ehorvath (Ned Horvath @ CE Software, Inc. )
  1788. Lines: 33
  1789. Date: 24 Mar 92 03:35:36 GMT
  1790. Phone: +1 515 224 1995
  1791. Message-ID: <9203231935.aa21737@q2.ics.uci.edu>
  1792. In-Reply-To: your message <internet0831617070> of Mon Mar 23 15:36:57 GMT 1992
  1793. >To: internet!ics.uci.edu!think-c
  1794. Content-Type: text
  1795. Content-Length: 1681
  1796. Newsgroups: fa.think-c
  1797. Message-Version: 2
  1798. Fax-Phone: +1 515 222 1225
  1799. EMail-Version: 2
  1800. UA-Message-ID: <MAC-1.3.4A2-618034-ehorvath-3>
  1801. UA-Content-ID: <MAC-1.3.4A2-618034-ehorvath-3>
  1802. MTS-Message-ID: <ehorvath0840333260>
  1803.  
  1804. Aaron Walsh (walshag@bcvms.bc.edu) asks
  1805. > While I'm on the topic of extending TextEdit, has anyone used (or know
  1806. > of) a commercially available TextEdit extension package for TCL (such as the
  1807. > "Word Solution Engine", which, to my knowlege does not support TCL or even
  1808. C)?
  1809.  
  1810. DataPak's WS Engine supports C quite nicely, and ships with Think C compatible
  1811. interfaces and libraries.  The definitions in the doc are all in pascal, not
  1812. unlike the bulk of Inside Macintosh, but the translation to C is generally
  1813. straightforward and works just fine, and headers are provided.
  1814.  
  1815. It took me 2-3 days to design and implement WS-based replacement classes for
  1816. the TCL 1.0 EditText classes (actually I did more: the style commands are
  1817. applied to the selection, not the whole buffer as in the (unstyled) TCL 1.0
  1818. classes).
  1819.  
  1820. I haven't converted those over to TCL 1.1 yet, but expect to soon.  I'll warn
  1821. about one gotcha: when scrolling a panorama containing WS text, you have to
  1822. scroll, ask WS where it REALLY is, and (usually) set the scroll bar values and
  1823. limits a second time: scrolling a WS record is imprecise because the
  1824. calculations are deferred.  The structure of the TCL means the scrollbars get
  1825. drawn twice, which can be a bit distracting the first time you see it.
  1826.  
  1827. WS is also (mostly) Script-Manager compatible.  The only exception I know of
  1828. is that, while it handles right-to-left scripts, it does not work with
  1829. mixed-direction scripts (e.g. right-to-left Arabic with embedded left-to-right
  1830. English).  When I asked DataPak tech support they told me there wasn't enough
  1831. demand for the feature to justify the (high) development cost.
  1832.  
  1833. Hope that helps.
  1834.  
  1835. =Ned Horvath=
  1836. ehorvath@attmail.com
  1837. 
  1838. 
  1839. Path: ucivax!gateway
  1840. From: sidar@complex.is (Sigurdur Darri Skulason)
  1841. Subject: ShowInit
  1842. Message-ID: <9203240722.AA22243@complex.is>
  1843. X-Mailer: ELM [version 2.3 PL11]
  1844. Newsgroups: fa.think-c
  1845. X-Charset: ASCII
  1846. Lines: 6
  1847. Date: 24 Mar 92 07:22:36 GMT
  1848. X-Char-Esc: 29
  1849.  
  1850.  
  1851. Could someone post to me the ShowINIT source code? I recently lost it in a
  1852. disk crash, and can't seem to find it on any ftp servers.
  1853.  
  1854.   Thanks, Sigurdur.
  1855.  
  1856. 
  1857. 
  1858. Path: ucivax!gateway
  1859. From: huff@mcclb0.med.nyu.edu ("Edward J. Huff")
  1860. Subject: Re: ShowInit
  1861. Message-ID: <01GI0OTFNWWG001ETA@MCCLB0.MED.NYU.EDU>
  1862. Newsgroups: fa.think-c
  1863. Lines: 218
  1864. Date: 24 Mar 92 15:09:28 GMT
  1865. X-Envelope-to: think-c@ics.uci.edu
  1866.  
  1867. >Could someone post to me the ShowINIT source code? I recently lost it in a
  1868. >disk crash, and can't seem to find it on any ftp servers.
  1869. >
  1870. >  Thanks, Sigurdur.
  1871. It appears that a lot of people have never heard of Archie.
  1872. You telnet to nis.ans.net, and login as archie, no password:
  1873.  
  1874. AIX telnet (nis.ans.net)
  1875.  
  1876. IBM AIX Version 3 for RISC System/6000
  1877. (C) Copyrights by IBM and by others 1982, 1990.
  1878. login: archie
  1879. *====================================================================*
  1880. |                 Welcome the ANS Archie Server !                    |
  1881. |                                                                    |
  1882. | *** As of 02/19/92, the default search method is set to "exact".   |
  1883. | *** Type "help set search" for more details.                       |
  1884. |                                                                    |
  1885. | Australian users:   archie.au (139.130.4.6)                        |
  1886. | Canadian users:     archie.mcgill.ca     (132.206.2.3)             |
  1887. | European users:     archie.funet.fi      (128.214.6.100)           |
  1888. |                     archie.doc.ic.ac.uk  (146.169.11.3)            |
  1889. | Other U.S. servers:                                                |
  1890. |   archie.sura.net      (128.167.254.179)                           |
  1891. |   archie.rutgers.edu   (128.6.18.15)                               |
  1892. |   archie.unl.edu       (129.93.1.14)                               |
  1893. |                                                                    |
  1894. | ** 'help' for help                                                 |
  1895. | ** Problems, comments etc. to archie-admin@ans.net                 |
  1896. |                                                                    |
  1897. | Client software is available on ftp.ans.net:/pub/archie/clients,   |
  1898. | and documentation can be found in /pub/archie/doc on the same      |
  1899. | machine.                                                           |
  1900. *====================================================================*
  1901. # term set to vt100 24 80
  1902. archie> prog showinit
  1903. # matches / % database searched:    0 /100%
  1904.  
  1905. # No matches were found.
  1906. archie> set search sub
  1907. archie> prog showinit
  1908. # matches / % database searched:   31 /
  1909. Host earth.rs.itd.umich.edu   (141.211.164.153)
  1910. Last updated 12:29 16 Mar 1992
  1911.  
  1912.     Location: /mac.bin/system.extensions/init/.AppleDouble
  1913.       FILE      rw----r--      7151  Jul 24  1991   ShowInitIcon
  1914.     Location: /mac.bin/system.extensions/init
  1915.       FILE      rw-r-----         0  Mar  2 21:38   ShowInitIcon
  1916.     Location: /mac.bin/system.extensions/init/Beep Shuffle :c4/.AppleDouble
  1917.       FILE      rw----r--       937  May 20  1991   CShowINIT.c
  1918.     Location: /mac.bin/system.extensions/init/Beep Shuffle :c4
  1919.       FILE      rw-r-----      6044  Mar 15  1991   CShowINIT.c
  1920.  
  1921. Host nic.funet.fi   (128.214.6.100)
  1922. Last updated 05:45 24 Mar 1992
  1923.  
  1924.     Location: /pub/mac/source
  1925.       FILE      rw-rw-r--     36479  Nov 10  1989   cshowinit.sit
  1926.  
  1927. Host garbo.uwasa.fi   (128.214.87.1)
  1928. Last updated 11:45 18 Mar 1992
  1929.  
  1930.     Location: /mac/source
  1931.       FILE      rw-rw-r--     36479  Nov 10  1989   cshowinit.sit
  1932.  
  1933. Host ucselx.sdsu.edu   (130.191.1.10)
  1934. Last updated 06:08  6 Mar 1992
  1935.  
  1936.     Location: /pub/mac/ThinkC
  1937.       FILE      rw-r--r--     51629  Oct 18  1990   cshowinit.hqx
  1938.  
  1939. Host plains.nodak.edu   (134.129.111.64)
  1940. Last updated 12:00  2 Mar 1992
  1941.  
  1942.     Location: /pub/mac/pub/programming/src
  1943.       FILE      rw-rw-r--     51470  Nov 10  1989   cshowinit.hqx
  1944.  
  1945. Host rusmv1.rus.uni-stuttgart.de   (129.69.1.12)
  1946. Last updated 15:35  6 Feb 1992
  1947.  
  1948.     Location: /soft/mac/source
  1949.       FILE      rw-r--r--     16114  Feb 19  1991   showinit.hqx
  1950.     Location: /serv2/soft/mac/source
  1951.       FILE      rw-r--r--     16114  Feb 19  1991   showinit.hqx
  1952.  
  1953. Host wuarchive.wustl.edu   (128.252.135.4)
  1954. Last updated 05:43  8 Mar 1992
  1955.  
  1956.     Location: /mirrors/macintosh/code
  1957.       FILE      rw-r--r--      7593  Aug 30  1988   asm-showinit.sit
  1958.  
  1959. Host rigel.acs.oakland.edu   (141.210.10.117)
  1960. Last updated 05:48  2 Mar 1992
  1961.  
  1962.     Location: /pub/macintosh/code
  1963.       FILE      rw-r--r--      7593  Aug 30  1988   asm-showinit.sit
  1964.  
  1965. Host procyon.cis.ksu.edu   (129.130.10.80)
  1966. Last updated 05:01  2 Mar 1992
  1967.  
  1968.     Location: /pub/Macintosh/source/asm
  1969.       FILE      rw-r--r--      7593  Aug  1  1991   showinit.shar
  1970.  
  1971. Host wuarchive.wustl.edu   (128.252.135.4)
  1972. Last updated 05:43  8 Mar 1992
  1973.  
  1974.     Location: /mirrors3/rascal.ics.utexas.edu/programming/+_ASM
  1975.       FILE      r--r--r--      6718  Jul 31  1988   ShowINIT.asm
  1976.  
  1977. Host rascal.ics.utexas.edu   (128.83.138.20)
  1978. Last updated 05:22  2 Mar 1992
  1979.  
  1980.     Location: /misc/mac/programming/+_ASM
  1981.       FILE      rw-rw-r--      6718  Aug  1  1988   ShowINIT.asm
  1982.  
  1983. Host wuarchive.wustl.edu   (128.252.135.4)
  1984. Last updated 05:43  8 Mar 1992
  1985.  
  1986.     Location: /mirrors3/rascal.ics.utexas.edu/programming/+_C-src+bin
  1987.       FILE      r--r--r--     36480  Nov 11  1989   CShowINIT_SIT_bin
  1988.  
  1989. Host rascal.ics.utexas.edu   (128.83.138.20)
  1990. Last updated 05:22  2 Mar 1992
  1991.  
  1992.     Location: /misc/mac/programming/+_C-src+bin
  1993.       FILE      rw-rw-r--     36480  Nov 12  1989   CShowINIT_SIT_bin
  1994.  
  1995. Host wuarchive.wustl.edu   (128.252.135.4)
  1996. Last updated 05:43  8 Mar 1992
  1997.  
  1998.     Location: /mirrors3/rascal.ics.utexas.edu/programming/+_C-src+bin
  1999.       FILE      r--r--r--      1999  Nov 11  1989   CShowINIT_intro
  2000.  
  2001. Host rascal.ics.utexas.edu   (128.83.138.20)
  2002. Last updated 05:22  2 Mar 1992
  2003.  
  2004.     Location: /misc/mac/programming/+_C-src+bin
  2005.       FILE      rw-rw-r--      1999  Nov 12  1989   CShowINIT_intro
  2006.  
  2007. Host plaza.aarnet.edu.au   (139.130.4.6)
  2008. Last updated 18:15 16 Mar 1992
  2009.  
  2010.     Location: /micros/mac/info-mac/Old/source
  2011.       FILE      rw-r--r--     14799  Jul  1  1991   showinit.hqx.Z
  2012.  
  2013. Host toklab.ics.osaka-u.ac.jp   (133.1.12.30)
  2014. Last updated 05:33  6 Mar 1992
  2015.  
  2016.     Location: /mac/info-mac/info-mac/recent/source
  2017.       FILE      rw-r--r--     14799  Jan 17 12:29   showinit.hqx.Z
  2018.  
  2019. Host shark.mel.dit.csiro.au   (144.110.16.11)
  2020. Last updated 10:50  3 Mar 1992
  2021.  
  2022.     Location: /info-mac/Old/source
  2023.       FILE      rw-r--r--     14799  Jul  1  1991   showinit.hqx.Z
  2024.  
  2025. Host plaza.aarnet.edu.au   (139.130.4.6)
  2026. Last updated 18:15 16 Mar 1992
  2027.  
  2028.     Location: /micros/mac/info-mac/Old/source/c
  2029.       FILE      rw-r--r--     45437  Jul  1  1991   cshowinit.hqx.Z
  2030.  
  2031. Host shark.mel.dit.csiro.au   (144.110.16.11)
  2032. Last updated 10:50  3 Mar 1992
  2033.  
  2034.     Location: /info-mac/Old/source/c
  2035.       FILE      rw-r--r--     45437  Jul  1  1991   cshowinit.hqx.Z
  2036.  
  2037. Host toklab.ics.osaka-u.ac.jp   (133.1.12.30)
  2038. Last updated 05:33  6 Mar 1992
  2039.  
  2040.     Location: /mac/info-mac/news
  2041.       FILE      rw-r--r--     45828  Mar 15  1990   CShowINITforTC.hqx.Z
  2042.  
  2043. Host rigel.acs.oakland.edu   (141.210.10.117)
  2044. Last updated 05:48  2 Mar 1992
  2045.  
  2046.     Location: /pub/macintosh/code
  2047.       FILE      rw-r--r--      7593  Aug 30  1988   asm-showinit.txt
  2048.  
  2049. Host gdr.bath.ac.uk   (138.38.32.1)
  2050. Last updated 06:25 18 Mar 1992
  2051.  
  2052.     Location: /pdsoft/macintosh/code
  2053.       FILE      rw-r--r--      7593  Aug 31  1988   showinit.asm
  2054.  
  2055. Host kalikka.jyu.fi   (130.234.0.2)
  2056. Last updated 05:18 21 Mar 1992
  2057.  
  2058.     Location: /maclib/source
  2059.       FILE      rw-rw-r--     11392  Feb 25 16:05   ShowInit_1.1b1.sit
  2060.  
  2061. Host jyu.fi   (130.234.0.6)
  2062. Last updated 05:16 21 Mar 1992
  2063.  
  2064.     Location: /maclib/source
  2065.       FILE      rw-rw-r--     11392  Feb 25 16:05   ShowInit_1.1b1.sit
  2066.  
  2067. Host kalikka.jyu.fi   (130.234.0.2)
  2068. Last updated 05:18 21 Mar 1992
  2069.  
  2070.     Location: /maclib/source
  2071.       FILE      rw-rw-r--       649  Feb 25 16:05   ShowInit_1.1b1.sit.doc
  2072.  
  2073. Host jyu.fi   (130.234.0.6)
  2074. Last updated 05:16 21 Mar 1992
  2075.  
  2076.     Location: /maclib/source
  2077.       FILE      rw-rw-r--       649  Feb 25 16:05   ShowInit_1.1b1.sit.doc
  2078.  
  2079. archie>
  2080. --
  2081. Edward J. Huff   huff@mcclb0.med.nyu.edu   (212)998-8465
  2082. Keck Laboratory for Biomolecular Imaging
  2083. NYU Chemistry Deptartment, 31 Washington Place, New York NY 10003
  2084.  
  2085. 
  2086. 
  2087. Path: ucivax!gateway
  2088. From: "ENG::TLEAMING"@gemini.sim.es.com (Taylor Leaming x3836)
  2089. Subject: RE: Beyond 32k TextEdit
  2090. Message-ID: <920323141844.20406dad@GEMINI.SIM.ES.COM>
  2091. Newsgroups: fa.think-c
  2092. Lines: 33
  2093. Date: 24 Mar 92 17:26:27 GMT
  2094. X-Vmsmail-To: SIM::SMTP%"fa.think-c-outbound-request@ics.uci.edu"
  2095.  
  2096. Aaron,
  2097.  
  2098. >Does anyone have sample code for creating (under TCL) text documents larger
  2099. >than 32k (the limit on TextEdit)?
  2100. >
  2101. >Using TCL, you are told to create a subclass of CAbstractText and define your
  2102. >own buffer.  This doesn't sound too bad, though I would prefer not to re-invent
  2103. >the wheel.... if someone has already done it
  2104. >and would be willing to share it, I would appreciate it.
  2105. >
  2106. >While I'm on the topic of extending TextEdit, has anyone used (or know
  2107. >of) a commercially available TextEdit extension package for TCL (such as the
  2108. >"Word Solution Engine", which, to my knowlege does not support TCL or even C)?
  2109. >
  2110. >Thanks,
  2111. >Aaron Walsh
  2112. >Boston College, IPS
  2113. >(walshag@bcvms.bc.edu)
  2114.  
  2115.  
  2116. I've been looking for the very same thing.  My best solution to date is to use
  2117. DataPak's WordEngine.  But, it costs $$.  Please let me know if you find a
  2118. better solution (ie: source code).
  2119.  
  2120. Taylor
  2121.  
  2122. --------------------------------------------------------------------------
  2123. Taylor Leaming                                  tleaming@velara.sim.es.com
  2124. Simulation Division
  2125. Evans & Sutherland Computer Corp.
  2126. SLC, UT                                                       801/582-5847
  2127.  
  2128.  
  2129. 
  2130. 
  2131. Path: ucivax!gateway
  2132. From: FLC3527@tamxrd.tamu.edu (Trey Campbell)
  2133. Subject: Getting along with the Finder
  2134. Message-ID: <920324130219.20203457@TAMXRD.TAMU.EDU>
  2135. Newsgroups: fa.think-c
  2136. Lines: 18
  2137. Date: 24 Mar 92 20:04:57 GMT
  2138. X-Vmsmail-To: SMTP%"fa.think-c-outbound-request@ics.uci.edu"
  2139.  
  2140. Hi, all!
  2141.  
  2142. I was wondering if anybody out there knows how to coax the Finder into noticing
  2143. changes that have been made to a file via FSpSetFInfo? I've tried using
  2144. FlushVol to no avail. Clearly the Finder is caching this new info somehwere,
  2145. but how can I get it written to disk? I've seen several programs where new
  2146. files and icons show up without having to open and close the window.
  2147.  
  2148. A second, sort of related, question: Is there a way to keep the "File you're
  2149. opening is locked" dialog from appearing when you open a locked file? I've
  2150. written a program to allow the user to change the Finder flags, etc. and this
  2151. dialog is sort of redundant since the program displays that info. I wrote a
  2152. dialog hook to go with CustomGetFile to record the file's status and unlock the
  2153. file when the OK button receives a hit (and it works), but I still get the
  2154. dialog. Any suggestions?
  2155.  
  2156. Thanks,
  2157. Trey Campbell, X-ray Diffraction Lab, Texas A&M University
  2158. 
  2159. 
  2160. Path: ucivax!gateway
  2161. From: FLC3527@tamxrd.tamu.edu (Trey Campbell)
  2162. Subject: Finder and File Updates
  2163. Message-ID: <920324150225.202031fb@TAMXRD.TAMU.EDU>
  2164. Newsgroups: fa.think-c
  2165. Lines: 18
  2166. Date: 24 Mar 92 21:00:21 GMT
  2167. X-Vmsmail-To: SMTP%"think-c@ics.uci.edu"
  2168.  
  2169. Hi, all!
  2170.  
  2171. I was wondering if anybody out there knows how to coax the Finder into noticing
  2172. changes that have been made to a file via FSpSetFInfo? I've tried using
  2173. FlushVol to no avail. Clearly the Finder is caching this new info somehwere,
  2174. but how can I get it written to disk? I've seen several programs where new
  2175. files and icons show up without having to open and close the window.
  2176.  
  2177. A second, sort of related, question: Is there a way to keep the "File you're
  2178. opening is locked" dialog from appearing when you open a locked file? I've
  2179. written a program to allow the user to change the Finder flags, etc. and this
  2180. dialog is sort of redundant since the program displays that info. I wrote a
  2181. dialog hook to go with CustomGetFile to record the file's status and unlock the
  2182. file when the OK button receives a hit (and it works), but I still get the
  2183. dialog. Any suggestions?
  2184.  
  2185. Thanks,
  2186. Trey Campbell, X-ray Diffraction Lab, Texas A&M University
  2187. 
  2188. 
  2189. Path: ucivax!gateway
  2190. From: abboud@cedrus.cedrus.com ("Hisham A. Abboud")
  2191. Subject: gamma tables
  2192. Message-ID: <9203242058.AA02328@cedrus.com>
  2193. Newsgroups: fa.think-c
  2194. Lines: 15
  2195. Date: 24 Mar 92 21:31:00 GMT
  2196.  
  2197.  
  2198. Hi there,
  2199.  
  2200. Any gurus out there familiar with changing the gamma table on color
  2201. Macs?  Also, would you know how quickly (in msecs) the gamma table can
  2202. be switched around?
  2203.  
  2204. Thanks.  I'd appreciate any info.
  2205.  
  2206.                         Hisham.
  2207.  
  2208.  
  2209. Hisham A. Abboud, Cedrus Corp.  [Internet: abboud@cedrus.com]
  2210.  
  2211.  
  2212. 
  2213. 
  2214. Path: ucivax!gateway
  2215. From: HBZ@zabin.rz-berlin.mpg.de (Hal Zabin)
  2216. Subject: Modal Dialogs with filterProc
  2217. Message-ID: <9203250615.aa23824@q2.ics.uci.edu>
  2218. X-Mailer: LeeMail 1.2
  2219. Newsgroups: fa.think-c
  2220. Lines: 21
  2221. Date: 25 Mar 92 14:15:22 GMT
  2222.  
  2223. Does anyone have some sample code they would be willing to send me in which one
  2224. uses a filter procedure in the modal dialog call? Specifically, I am trying to
  2225. make a rather simple dialog box with a field for text entry which can be
  2226. scrolled, and if I am not wrong, I must do this by passing ModalDialog a
  2227. ProcPtr which can handle this. This is probably a rather simply question, but I
  2228. am stumped! I would appreciate any help any of you might be able to offer me.
  2229. Thanks, Hal Zabin
  2230.  
  2231.  
  2232.  
  2233.  
  2234. Please respond to: ZABIN@RZ-BERLIN.MPG.DE
  2235.  
  2236. <=====-------------------------------=====>
  2237. Dr. Hal B. Zabin
  2238. Max-Planck-Institut fr molekulare Genetik
  2239. Abteilung Trautner
  2240. 1000 Berlin 33
  2241. Germany
  2242. <=====-------------------------------=====>
  2243.  
  2244. 
  2245. 
  2246. Path: ucivax!gateway
  2247. From: roderis@atlantis.cs.orst.edu (Stephen Roderick)
  2248. Subject: RE: Beyond 32k TextEdit
  2249. Message-ID: <9203260431.AA20693@atlantis.CS.ORST.EDU>
  2250. Newsgroups: fa.think-c
  2251. Lines: 9
  2252. Date: 26 Mar 92 04:33:44 GMT
  2253.  
  2254.  
  2255. If you are interested I am selling WS Engine ($395) with the
  2256. virtual memory extension ($175).
  2257.  
  2258. I will sell the two together for $295 or a reasonable offer!
  2259.  
  2260. Steve Roderick
  2261. roderis@atlantis.cs.orst.edu
  2262. (503) 753-2329
  2263. 
  2264. 
  2265. Path: ucivax!gateway
  2266. From: HBZ@zabin.rz-berlin.mpg.de (Hal Zabin)
  2267. Subject: Crashes...
  2268. Message-ID: <9203261450.aa22363@q2.ics.uci.edu>
  2269. X-Mailer: LeeMail 1.2
  2270. Newsgroups: fa.think-c
  2271. Lines: 21
  2272. Date: 26 Mar 92 22:50:39 GMT
  2273.  
  2274. I have been working on a program which is frustrating me to no end due to the
  2275. following: the program always crashes at a particular point, EXCEPT when I am
  2276. using the debugger! I have a sneaking suspicion that this should be telling me
  2277. something important about the problem. If anyone has any ideas on what would
  2278. lead to such a situation, I would greatly appreciate hearing them! (BTW: I am
  2279. using Think-C 5.0.2).
  2280.  
  2281. Thanks,
  2282. Hal Zabin
  2283.  
  2284.  
  2285. Please respond to: ZABIN@RZ-BERLIN.MPG.DE
  2286.  
  2287. <=====-------------------------------=====>
  2288. Dr. Hal B. Zabin
  2289. Max-Planck-Institut fr molekulare Genetik
  2290. Abteilung Trautner
  2291. 1000 Berlin 33
  2292. Germany
  2293. <=====-------------------------------=====>
  2294.  
  2295. 
  2296. 
  2297. Path: ucivax!gateway
  2298. From: andre@cs.pitt.edu (Andre "Just A Plumber" Srinivasan)
  2299. Subject: Re: Crashes...
  2300. Message-ID: <9203270001.AA04291@speedy.cs.pitt.edu>
  2301. In-Reply-To: Hal Zabin's message of 26 Mar 92 22:50:39 GMT <9203261450.aa22363@q2.ics.uci.edu>
  2302. Newsgroups: fa.think-c
  2303. Lines: 21
  2304. Date: 27 Mar 92 00:01:54 GMT
  2305.  
  2306.  
  2307. ) following: the program always crashes at a particular point, EXCEPT when I am
  2308. ) using the debugger! I have a sneaking suspicion that this should be telling me
  2309. ) something important about the problem. If anyone has any ideas on what would
  2310. ) lead to such a situation, I would greatly appreciate hearing them! (BTW: I am
  2311. ) using Think-C 5.0.2).
  2312.  
  2313. you're dereferencing a pointer that works out ok when the debugger is
  2314. in memory.  try localizing the problem to a particular function or
  2315. even a few lines of code if you can.  then, using either macsbug or
  2316. the debugger, check every pointer on each line in the suspect area.
  2317.  
  2318. good luck.
  2319.  
  2320.                                 -andre.
  2321.  
  2322. ---
  2323. Andre Srinivasan  :     "This file provides programmers with information
  2324. 734 LRDC          :     proving that it really was a hardware problem..."
  2325. U. of Pittsburgh  :
  2326. andre@cs.pitt.edu :                - MacsBug Ballon Help
  2327. 
  2328. 
  2329. Path: ucivax!gateway
  2330. From: abboud@cedrus.cedrus.com ("Hisham A. Abboud")
  2331. Subject: Re:  Sound Manager Question
  2332. Message-ID: <9203270136.AA03545@cedrus.com>
  2333. Newsgroups: fa.think-c
  2334. Lines: 13
  2335. Date: 27 Mar 92 02:18:35 GMT
  2336.  
  2337.  
  2338. Earlier, I posted a question about playing async sound under
  2339. System 6.07.  Thanks to the couple of people who resonded.
  2340.  
  2341. While looking for help on AppleLink, I ran into a note by Apple
  2342. Apple documenting a bug in 6.07.  Check it out (I could send a copy
  2343. to those interested, just ask).
  2344.  
  2345.                     Hisham.
  2346.  
  2347.  
  2348.  
  2349. Hisham A. Abboud, Cedrus Corp.  [Internet: abboud@cedrus.com]
  2350. 
  2351. 
  2352. Path: ucivax!gateway
  2353. From: aaf@mvaxcs1.cse.nau.edu (Aric Friesen)
  2354. Subject: That header info on a printed page...
  2355. Message-ID: <199203290203.AA27750@mvaxcs1.cse.nau.edu>
  2356. Newsgroups: fa.think-c
  2357. Lines: 8
  2358. Date: 29 Mar 92 02:07:16 GMT
  2359.  
  2360.  
  2361. This is probably a really stupid question, but I have yet to figure out
  2362. how to stop ThinkC from printing the time, date, and filename at the
  2363. tope of each page.  Is there a way to stop it?  I really don't want people
  2364. to know that I do most of my programming at 2:30 in the morning.
  2365.  
  2366.         Aric Friesen
  2367.  
  2368. 
  2369. 
  2370. Path: ucivax!gateway
  2371. From: igorl@ncsa.uiuc.edu (Igor Livshits)
  2372. Subject: Exception handler v. CError
  2373. Message-ID: <9203311631.AA23604@newton.ncsa.uiuc.edu>
  2374. Newsgroups: fa.think-c
  2375. Lines: 13
  2376. Date: 31 Mar 92 16:31:40 GMT
  2377.  
  2378. Hello,
  2379.  
  2380. I getting confused by the overlapping utility of the CError object the
  2381. Exception handler in TCL 1.1.  Which one should I use and when?  Does
  2382. CError rely on the Exception handler?
  2383.  
  2384. One pf the problems with the Exception handler that I noticed is that while
  2385. the applciation is starting up and creates a new document, the errors are
  2386. caught by the Apple Event object and not CApplication.  This results in a
  2387. lack of appropriate error alerts.
  2388.  
  2389. Thanks, igor
  2390.  
  2391. 
  2392. 
  2393. Path: ucivax!gateway
  2394. From: wysocki@husc.harvard.edu
  2395. Subject: Re: Beyond 32k TextEdit
  2396. Message-ID: <9203311843.AA16744@husc10>
  2397. In-Reply-To: <9203230650.aa18203@Paris.ics.uci.edu>; from "WALSHAG" at Mar 23, 92 3:36 pm
  2398. X-Mailer: ELM [version 2.3 PL11]
  2399. Newsgroups: fa.think-c
  2400. Lines: 18
  2401. Date: 31 Mar 92 18:43:51 GMT
  2402.  
  2403. > Does anyone have sample code for creating (under TCL) text documents larger
  2404. > than 32k (the limit on TextEdit)?
  2405. >
  2406. > Using TCL, you are told to create a subclass of CAbstractText and define your
  2407. > own buffer.  This doesn't sound too bad, though I would prefer not to
  2408. > re-invent the wheel.... if someone has already done it
  2409. > and would be willing to share it, I would appreciate it.
  2410.  
  2411. I've written just such a subclass of CAbstractText that supports
  2412. documents larger than 32k.  It's not Script Manager-compatible or
  2413. anything like that, but it works reasonably well.  If anyone would be
  2414. interested in testing my code, drop me a message and I'll get back to
  2415. you at some point.
  2416.  
  2417. Chris Wysocki
  2418. wysocki@husc.harvard.edu
  2419.  
  2420.  
  2421. 
  2422.